1.3 KiB
1.3 KiB
Setup daily Deis backups
- SSH into a Deis instance
git clone https://github.com/glogiotatidis/deis-backup-service
- Edit
units/deis-backup.service
AWS_ACCESS_KEY
: AWS S3 Access KeyAWS_SECRET_KEY
: AWS S3 Secret KeyAWS_BACKUP_BUCKET
: AWS S3 Backup Bucket. Examplemasterfirefoxos-backup/deis
DEIS_DOMAIN
: Deis Domain. Examplemasterfirefoxos.com
PASSPHRASE
: Passphrase for gpg encryption of data uploaded to S3. Optional.AWS_HTTPS
: Use HTTPS to connect to S3.True
orFalse
. Optional defaults toTrue
.AWS_REDUCED_REDUNDANCY
: Use AWS Reduced Redundancy.True
orFalse
. Optional defaults toFalse
.
fleetctl load deis-backup.service
fleetctl load deis-backup.timer
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.