Skip to content

Conversation

Thunderbottom
Copy link
Member

If a nomad_raft_backup_bucket is defined, this adds a script that runs at midnight and 12PM to backup Nomad RAFT snapshot to the S3 bucket. The script will be present on all servers, but will only run on the leader.

  • The cron is run using systemd-timer.
  • The snapshot is timestamped and namespaced to a folder by cluster_name, so multiple snapshots from different clusters can use the same bucket.

NOTE: There was also an issue with the file limit check which got autocorrected by shellcheck, so a fix for that is included here as well.

If a `nomad_raft_backup_bucket` is defined, this adds a script that runs
at midnight and 12PM to backup Nomad RAFT snapshot to the S3 bucket. The
script will be present on all servers, but will only run on the leader.

The cron is run using systemd-timer.

The snapshot is timestamped and namespaced to a folder by `cluster_name`,
so multiple snapshots from different clusters can use the same bucket.

There was also an issue with the file limit check which got autocorrected
by shellcheck, so a fix for that is included here as well.

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant