Configure backups

  1. Create and configure an S3 backup bucket

  2. Configure the AWS CLI

  3. In the server’s Pillar file, set backup.location to a bucket and prefix, and backup.directories to 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/:
    
  4. Deploy the server

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.

  1. Create and configure an S3 backup bucket

  2. Configure the AWS CLI

  3. In the server’s Pillar file, set sync.location to a bucket and prefix, and sync.directories to 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:
    
  4. Deploy the server