Creating Volume-Level Backup Job
|
Volume-level backup job relies on a device name in the /dev directory. Device names in the /dev directory (for example, /dev/md-127, /dev/dm-1) must stay persistent for backed-up volumes. Otherwise, the job will back up the wrong volume. |
You can create a volume-level backup of the entire computer image or specific volumes.
To back up the entire computer image, use the following command:
veeamconfig job create volumelevel --name <job_name> --reponame <repository_name> --backupallsystem |
To back up specific volumes, use the following command:
veeamconfig job create volumelevel --name <job_name> --reponame <repository_name> --objects <volume_to_backup> <advanced_options> <schedule_options> <active_full_backup_options> <indexing_options> |
where:
- <job_name> — name for the created backup job.
- <repository_name> — name of the backup repository that should be used as a target location for the backup job. The backup repository must be created in advance. To learn more, see Creating Backup Repository.
If you want to create Veeam Agent backups in a Veeam backup repository of cloud repository, you need connect to the Veeam backup server or Veeam Cloud Connect service provider in advance, before configuring the backup job. To learn more, see Connecting to Veeam Backup Server and Connecting to Service Provider.
- <volume_to_backup> — object that should be included in backup:
- For simple volumes — name of a block device that represents a volume or an entire disk that should be included in backup. You can specify entire disk to create backup of the entire computer image or individual computer volumes to create backup of specific volumes. If you want to back-up several disks or volumes, specify them one after another using the ',' (comma) character as a separator.
|
If you include a block device in the backup, and this block device is a physical volume assigned to an LVM volume group, Veeam Agent will include the whole LVM volume group in the backup. |
- For LVM volumes — name of an LVM logical volume that should be included in backup. If you want to back-up several LVM logical volumes, specify them one after another using the ',' (comma) character as a separator.
- <advanced_options> — advanced options for the backup job. To learn more, see Advanced Backup Job Settings.
- <schedule_options> — schedule options for the backup job. To learn more, see Schedule Settings.
- <active_full_backup_options> — active full backup schedule options for the backup job. To learn more, see Active Full Backup Schedule Settings.
- <indexing_options> — file system indexing options for the backup job. To learn more, see File System Indexing Settings.
For example:
$ veeamconfig job create --name SystemBackup --reponame Repository_01 --objects /dev/sda1 --weekdays Mon,Sun --weekdays-full Thu |
|
Consider the following:
|
You can specify the following advanced options for the backup job:
Option | Description and values |
---|---|
--compressionlevel | Data compression level. Possible values are:
|
--blocksize | Data block size in kilobytes. Possible values are 256, 512, 1024 or 4096. |
--maxpoints | The number of restore points that you want to store in the backup location. By default, Veeam Agent for Linux keeps 7 latest restore points. When the new restore point that exceeds the specified number is created, Veeam Agent for Linux will remove the earliest restore point from the backup chain. |
--prefreeze | Path to the script that should be executed before the snapshot creation. This option is available only if Veeam Agent for Linux operates in the Server edition. To learn about editions, see Product Editions. |
--postthaw | Path to the script that should be executed after the snapshot creation. This option is available only if Veeam Agent for Linux operates in the Server edition. To learn about editions, see Product Editions. |
--prejob | Path to the script that should be executed at the start of the backup job. |
--postjob | Path to the script that should be executed after the backup job completes. |
--setencryption | Defines that data encryption option is enabled for the job. When you use the veeamconfig job create command with the --setencryption option, Veeam Agent for Linux will prompt you to specify a password for data encryption and hint for the password. |
The number of days to keep the backup created with the backup job in the target location. If Veeam Agent for Linux does not create new restore points for the backup, the backup will remain in the target location for the specified number of days. When this period is over, the backup will be removed from the target location. By default, the retention period for old backups is 30 days. |
Option | Description and values |
---|---|
--daily | Defines that the backup job must start daily at specific time. |
--weekdays | Weekdays when the backup job must start separated by a comma (','). Possible values are:
|
--at | Time of day when the backup job must start specified in the HH:MM format. For example: 20:00. |
After the backup job is created, Veeam Agent for Linux automatically enables backup schedule. To learn about how to configure backup schedule for an existing backup job, see Configuring Backup Schedule.
Active Full Backup Schedule Settings
Option | Description and values |
---|---|
--weekdays-full | Weekdays when the backup job must create an active full backup separated by a comma (','). Possible values are:
|
--thisday-full | Days of the month when the backup job must create an active full backup separated by a comma (','). Possible values are: 1-30 (or 1-31, depending on the month length). |
After the backup job is created, Veeam Agent for Linux automatically enables active full backup schedule. To learn about how to configure active full backup schedule for an existing backup job, see Configuring Active Full Backup Schedule.
You can specify one the following file system indexing options for the backup job:
Option | Description and values |
---|---|
--indexall | Defines that Veeam Agent for Linux must index all files on the volumes included in backup. |
--indexonly | Path to a directory that contains files that you want to index. Enter paths to the necessary directories. To separate several paths, use the ',' (comma) character. |
--indexexcept | Path to a directory that contains files that you do not want to index. You can specify one or more paths. To separate several paths, use the ',' (comma) character. |
To learn more about file indexing, see File System Indexing.