Skip to content

feat: add support to backup nomad raft snapshot to s3 #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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 <[email protected]>
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