Fleet units and dockerfile to backup Deis
Перейти к файлу
Josh Mize 4566872b21
Merge pull request #6 from Mozilla-GitHub-Standards/master
Add Mozilla Code of Conduct
2019-03-29 14:04:05 -05:00
image Export pg_dump env variables before `set -x`. 2015-03-24 15:05:18 +02:00
units Deis backup service and daily timer. 2015-03-16 17:57:17 +02:00
CODE_OF_CONDUCT.md Add Mozilla Code of Conduct file 2019-03-29 09:54:28 -07:00
README.md Update Readme to include AWS_REDUCED_REDUNDANCY. 2015-03-24 14:29:37 +02:00

README.md

Setup daily Deis backups

  1. SSH into a Deis instance
  2. git clone https://github.com/glogiotatidis/deis-backup-service
  3. Edit units/deis-backup.service
  • AWS_ACCESS_KEY: AWS S3 Access Key
  • AWS_SECRET_KEY: AWS S3 Secret Key
  • AWS_BACKUP_BUCKET: AWS S3 Backup Bucket. Example masterfirefoxos-backup/deis
  • DEIS_DOMAIN: Deis Domain. Example masterfirefoxos.com
  • PASSPHRASE: Passphrase for gpg encryption of data uploaded to S3. Optional.
  • AWS_HTTPS: Use HTTPS to connect to S3. True or False. Optional defaults to True.
  • AWS_REDUCED_REDUNDANCY: Use AWS Reduced Redundancy. True or False. Optional defaults to False.
  1. fleetctl load deis-backup.service
  2. fleetctl load deis-backup.timer
  3. fleetctl start deis-backup.timer

You don't need to start deis-backup.service, timer service will take care of that when it's time.

fleectl list-units should list both services like this

  • deis-backup.service 5277b5e9.../10.21.2.84 inactive dead
  • deis-backup.timer 5277b5e9.../10.21.2.84 inactive waiting

If you want to change the frequency of the backups, edit deis-backup.timer unit and adjust OnCalendar entry to your needs. You can read more about the Timer format on systemd.timer documenation.