Configure backups¶
Create and configure an S3 backup bucket
Configure the AWS CLI
In the server’s Pillar file, set
backup.locationto a bucket and prefix, andbackup.directoriesto a dict of paths without values. You can annotate what a path must match, for example:backup: location: ocp-coalition-backup/site directories: # Must match directory in coalition/init.sls. /home/coalition/public_html/:
Sync directories¶
Note
This is used only for disaster recovery. This is not a true, immutable backup.
Attention
If this uses the same bucket as backups, ensure the IAM backup policy sets Prefix and is not scoped to the entire bucket.
Create and configure an S3 backup bucket
Configure the AWS CLI
In the server’s Pillar file, set
sync.locationto a bucket and prefix, andsync.directoriesto a dict of paths without values. You can annotate what a path must match, for example:backup: location: ocp-registry-backup/file-sync directories: /data/storage/exporter: