--- title: "Enabling Long-Term Retention Policy" description: "To start marking backups with specific GFS flags, you must enable the long-term retention policy for the job. Use the following command: or where: — ID of the backup job for which you want to enable the long-term retention policy." canonical: "https://helpcenter.veeam.com/docs/agentforsolaris/userguide/backup_job_cmd_gfs_enable.html" breadcrumb: "User Guide > Performing Backup > Creating Backup Jobs > Creating Backup Job with Command Line Interface > Configuring Long-Term Retention Policy > Enabling Long-Term Retention Policy" dateModified: "2026-11-03" --- # 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 [--type ] ``` or ``` veeamconfig gfs enable --jobname [--type ] ``` where: - `` — 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](backup_job_list.md). - `` — name of the backup job for which you want to enable the long-term retention policy. - `` — type of the long-term retention policy. Possible values: `weekly`, `monthly` or `yearly`. This parameter is optional. You can use it to enable a specific type of long-term retention policy. To enable several types of retention at once, specify all necessary retention types separated by a comma ('`,`') — for example: `weekly,monthly`. 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](backup_job_cmd_gfs_disable.md).