Specifying Backup Schedule
Depending on the product edition, Veeam Agent allows you to set daily, monthly or periodic schedule for a backup job. Daily schedules are available for the Free and Workstation editions of Veeam Agent. In the Server edition of Veeam Agent, you can additionally set monthly and periodic schedules for backup jobs. For details on Veeam Agent editions, see Product Editions.
After you define the schedule, Veeam Agent automatically enables this schedule for the specified backup job.
You can set the backup job to run automatically on specific weekdays or every day.
- To run the backup job on specific days of the week, use the following command:
veeamconfig schedule set --jobid <job_id> --weekdays <days> --at <time> |
or
veeamconfig schedule set --jobname <job_name> --weekdays <days> --at <time> |
where:
- <job_id> — ID of the backup job for which you want to configure the schedule. You should look up the job ID in advance, before configuring the schedule — 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 configure the schedule.
- <days> — days when the backup job must start separated by a comma (',') — for example: Monday,Tuesday,Wednesday,Thursday,Friday or Mon,Tue,Wed,Thu,Fri.
- <time> — time of day when the backup job must start specified in the HH:MM format — for example, 20:00.
For example:
user@srv01:~$ veeamconfig schedule set --jobname DailyBackup --weekdays Monday,Tuesday,Wednesday,Thursday,Friday --at 20:00 |
- To run the backup job every day, use the following command:
veeamconfig schedule set --jobid <job_id> --daily --at <time> |
or
veeamconfig schedule set --jobname <job_name> <daily options> --at <time> |
where:
- <job_id> — ID of the backup job for which you want to configure the schedule. You should look up the job ID in advance, before configuring the schedule — 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 configure the schedule.
- <time> — time of day when the backup job must start specified in the HH:MM format — for example, 20:00.
For example:
user@srv01:~$ veeamconfig schedule set --jobid 4849a3ae-1935-4969-98a3-d8acd2f6c73f --daily --at 20:00 |
You can set the backup job to run automatically on specific months or every month.
- To run the backup job monthly on a specific day of the specific week, use the following command:
veeamconfig schedule set --jobid <job_id> --monthlyweekday <day> --weeknumber <week> [--months <months>] --at <time> |
or
veeamconfig schedule set --jobname <job_name> --monthlyweekday <day> --weeknumber <week> [--months <months>] --at <time> |
where:
- <job_id> — ID of the backup job for which you want to configure the schedule. You should look up the job ID in advance, before configuring the schedule — 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 configure the schedule.
- <day> — day of the week when the backup job must start — for example, Tuesday or Tue.
- <week> — week of the month when the backup job must run. Possible values: First, Second, Third, Fourth or Last.
- <months> — months when the backup job must run separated by a comma (',') — for example: Jan,Apr,Jul,Oct. If you do not specify this option, the backup job will run every month.
- <time> — time of day when the backup job must start specified in the HH:MM format, — for example, 20:00.
For example:
user@srv01:~$ veeamconfig schedule set --jobname DailyBackup --monthlyweekday Mon --weeknumber Second --months Jan,Jul --at 20:00 |
- To run the backup job monthly on a specific day of the month, use the following command:
veeamconfig schedule set --jobid <job_id> --thisday <day> [--months <months>] --at <time> |
or
veeamconfig schedule set --jobname <job_name> --thisday <day> [--months <months>] --at <time> |
where:
- <job_id> — ID of the backup job for which you want to configure the schedule. You should look up the job ID in advance, before configuring the schedule — 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 configure the schedule.
- <day> — day of the month when the backup job must start. Possible values range from 1 to 31 or Last.
- <months> — months when the backup job must run separated by a comma (',') — for example: Jan,Apr,Jul,Oct. If you do not specify this option, the backup job will run every month.
- <time> — time of day when the backup job must start specified in the HH:MM format, — for example, 20:00.
For example:
user@srv01:~$ veeamconfig schedule set --jobname DailyBackup --thisday 21 --months Jan,Jul --at 20:00 |
To run the job periodically, run the following command:
veeamconfig schedule set --jobid <job_id> --every <time> |
or
veeamconfig schedule set --jobname <job_name> --every <time> |
where:
- <job_id> — ID of the backup job for which you want to configure the schedule. You should look up the job ID in advance, before configuring the schedule — 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 configure the schedule.
- <time> — period of time when the backup job must start specified in the HH:MM format, — for example, 06:00.
For example:
user@srv01:~$ veeamconfig schedule set --jobname DailyBackup --every 12:00 |