-
Notifications
You must be signed in to change notification settings - Fork 6
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
Set up automated backups for brainard-archiva server #22
Comments
I followed this README from CaseyLabs. I modified the script provided to retain snapshots for 31 days instead of 7 days. I also used this handy review of crontab. I created a new AMI called |
The backup script works when invoked manually. For example:
produced two a new snapshot of the brainard-archiva EBS volume, visible in the EC2 management console. Will leave this issue open until I can confirm that the cron job works. This should be apparent at 22:55 GMT, which is when the backup is scheduled. |
Job did not fire last night. Looking at cron configuration, I think I scheduled the job as the wrong user, probably causing a permissions issue for AWS. Re-scheduled the job as root, which has the AWS credentials. |
Cron job was screwed up with an extra parameter Will leave this issue open until 22:55 GMT to verify that the job id firing on the correct schedule. |
Jobs are firing on the correct schedule. |
Our brainard-archiva server is hosted at AWS. It uses an EBS volume to store artifact data.
We should set up automated nightly backups of the EBS volume. These should be stored as EBS "snapshots" stored on S3.
Making EBS snapshots is really easy from the AWS management console. Automating the snapshots will take a bit more system admin work. Here is one possible approach.
The text was updated successfully, but these errors were encountered: