Create an Automatic Backup Schedule

The create automaticbackup command creates backups for filesystems, luns, or objectstores.

  • Create Filesystem Automatic Backup – POST /pools/pool/projects/filesystem/filesystem/automaticbackup

  • Create Lun Automatic Backup – POST /pools/pool/projects/luns/lun/automaticbackup

  • Create Objectstore Automatic Backup – POST /pools/pool/projects/objectstores/objectstore/automaticbackup

You can set a schedule for the automatic backup:

  • Set the frequency to halfhour, hour, day, week, or month to indicate how often the cloud backup is automatically taken.

  • Set the precise time the cloud backup is automatically taken. For half-hourly or hourly cloud backup, you can choose how many minutes after the half-hour or hour the cloud backup is taken. For daily cloud backup, you can choose the hour and minute the cloud backup is taken, and for weekly or monthly cloud backup, you can specify the day, hour, and minute.

  • Select the cloud target. The cloud target must exist before you can schedule an automatic backup.

  • If the share is encrypted, you have the option to encrypt the backup as well.
  • To use incremental backups, specify the number of incremental backups to be taken between full backups in the Inc field.

Example:
curl -XPOST -H "Content-Type: application/json"  -k -u user:password https://hostname/api/storage/v2/pools/p0/projects/ps/automaticbackup -d '{"frequency": "halfhour"}'
{
  "automatic": {
    "href": "/api/storage/v2/pools/p0/projects/ps/automaticbackup/automatic-000",
    "frequency": "halfhour",
    "day": "",
    "hour": "",
    "minute": "00",
    "target": "pl-project-backup",
    "format": "zfs",
    "encrypted": false,
    "incremental": 0
  }
}