Enabling Long-Term Retention Policy

To start marking backups with specific GFS flags, you must enable the long-term retention policy for the job. Use the following command:

veeamconfig gfs enable --jobid <job_id> --type <period>

or

veeamconfig gfs enable --jobname <job_name> --type <period>

where:

  • <job_id> — ID of the backup job for which you want to enable the long-term retention policy. You should look up the job ID in advance, for example, with the veeamconfig job list command. To learn more, see Viewing List of Backup Jobs.
  • <job_name> — name of the backup job for which you want to enable the long-term retention policy.
  • <period> — type of the long-term retention schedule. Possible values: weekly, monthly or yearly. You can enable several types of schedule at once. To do this, specify all necessary schedule types separated by a comma (',') — for example: weekly,monthly,yearly.

For example:

user@srv01:~$ veeamconfig gfs enable --jobid 4849a3ae-1935-4969-98a3-d8acd2f6c73f --type monthly

You can disable the long-term retention policy for the job at any time. To learn more, see Disabling Long-Term Retention Policy.