-
zadrian
- Expert
- Posts: 161
- Liked: 5 times
- Joined: Jul 14, 2015 8:26 am
- Contact:
How to schedule replication job after backup up copy
Hi and Thanks in advance.
I have some jobs but I will use one as an example....
Job 1
Daily at 10pm a "reverse incremental" Backup job starts for a VM. Usually takes about 45 min. Veeam-HQ will backup VM to a Synology NAS (running SATA HDD)
Job 2
Then a backup copy job runs. I got no idea how this is triggered (Copy Interval daily at 12 midnight), the Backup copy job have 2 objects that include the VM (added "from infrastructure") and back job (added "from jobs"). Veeam-HQ will copy backup VM to Site-1 Synology NAS (running SATA HDD) via WAN accelerator using Veeam-Site-1.
The issue is that sometimes the backup copy job can run longer than usual....(like today for no apparent reason)
- These are the jobs with time taken : HDD 2 ( 1.2TB) read 25 MB/s (03:35:25)....HDD 1 (200GB) read 41 MB/s (3:48)
- ** The backup copy job can be stuck at 99% for a long time : merging oldest incremental backup into full backup & creating restore point (taking over 3hr-5hr, I do not know if they are same jobs as their clock seems to run in sync only approx 1 minute apart).**
Job 3
Daily 5:30am A replication job will then create replica of the VM (source Site-1 Synology NAS) to a ESXi host with SSD storage.
The time 5:30am was taken as most days, the backup copy job would have finished by 4am to 4:30am. But today at 10:21am, the backup copy job was still running (see **).
So is there a way to schedule replica jobs only after the backup copy job completes ?
I have some jobs but I will use one as an example....
Job 1
Daily at 10pm a "reverse incremental" Backup job starts for a VM. Usually takes about 45 min. Veeam-HQ will backup VM to a Synology NAS (running SATA HDD)
Job 2
Then a backup copy job runs. I got no idea how this is triggered (Copy Interval daily at 12 midnight), the Backup copy job have 2 objects that include the VM (added "from infrastructure") and back job (added "from jobs"). Veeam-HQ will copy backup VM to Site-1 Synology NAS (running SATA HDD) via WAN accelerator using Veeam-Site-1.
The issue is that sometimes the backup copy job can run longer than usual....(like today for no apparent reason)
- These are the jobs with time taken : HDD 2 ( 1.2TB) read 25 MB/s (03:35:25)....HDD 1 (200GB) read 41 MB/s (3:48)
- ** The backup copy job can be stuck at 99% for a long time : merging oldest incremental backup into full backup & creating restore point (taking over 3hr-5hr, I do not know if they are same jobs as their clock seems to run in sync only approx 1 minute apart).**
Job 3
Daily 5:30am A replication job will then create replica of the VM (source Site-1 Synology NAS) to a ESXi host with SSD storage.
The time 5:30am was taken as most days, the backup copy job would have finished by 4am to 4:30am. But today at 10:21am, the backup copy job was still running (see **).
So is there a way to schedule replica jobs only after the backup copy job completes ?
-
foggy
- Veeam Software
- Posts: 21225
- Liked: 2186 times
- Joined: Jul 11, 2011 10:22 am
- Full Name: Alexander Fogelson
- Contact:
Re: How to schedule replication job after backup up copy
One of the solutions is to use post-job script to trigger replication job.
-
zadrian
- Expert
- Posts: 161
- Liked: 5 times
- Joined: Jul 14, 2015 8:26 am
- Contact:
Re: How to schedule replication job after backup up copy
Will the post-job-script run the replication job (means I will need to turn off the schedule of the replication job) or will it run a copy of the replication job (means I can disable the replication job) ?
-
foggy
- Veeam Software
- Posts: 21225
- Liked: 2186 times
- Joined: Jul 11, 2011 10:22 am
- Full Name: Alexander Fogelson
- Contact:
Re: How to schedule replication job after backup up copy
It will run whatever job you would like it to run - you just put the job name there. For this job you need to disable the schedule, right.
-
zadrian
- Expert
- Posts: 161
- Liked: 5 times
- Joined: Jul 14, 2015 8:26 am
- Contact:
Re: How to schedule replication job after backup up copy
I know it will run, but will I still see logs for the replication job ?
BTW, can I use the command line shown in the replication job summary "Command line to start the job on backup server: "C:\Program Files\Veeam\Backup and Replication\Backup\Veeam.Backup.Manager.exe" backup c82cd675-577a-4e7d-b252-f5f7bed2d1b6" ?
That means the post-job script actually does like a "run now" on the scheduled jobs ?
BTW, can I use the command line shown in the replication job summary "Command line to start the job on backup server: "C:\Program Files\Veeam\Backup and Replication\Backup\Veeam.Backup.Manager.exe" backup c82cd675-577a-4e7d-b252-f5f7bed2d1b6" ?
That means the post-job script actually does like a "run now" on the scheduled jobs ?
-
foggy
- Veeam Software
- Posts: 21225
- Liked: 2186 times
- Joined: Jul 11, 2011 10:22 am
- Full Name: Alexander Fogelson
- Contact:
Re: How to schedule replication job after backup up copy
Yes, it is similar to "run now" and yes, you will see the job session in Veeam B&R as for any other job. You can use either this command or trigger the job via PowerShell.
-
zadrian
- Expert
- Posts: 161
- Liked: 5 times
- Joined: Jul 14, 2015 8:26 am
- Contact:
Re: How to schedule replication job after backup up copy
Thanks...will try....
-
tm67
- Veeam Legend
- Posts: 241
- Liked: 91 times
- Joined: Feb 21, 2023 4:44 pm
- Full Name: Timo Marfurt
- Location: Switzerland
- Contact:
Re: How to schedule replication job after backup up copy
Digging up this older post.
I have a backup job with a copy job to a second location. And I have a replica job that I want to schedule after the copy job is finished since I want to use this backup copy repo as a source for the replica job.
In the selection of the "After this job" (https://helpcenter.veeam.com/docs/vbr/u ... tml?ver=13), I can only select existing backup and replication jobs.
But no backup copy jobs.
Is this something that will be added in a future release?
I do not often use the "after this job" schedule, but in this scenario, it makes sense in my opinion.
I have a backup job with a copy job to a second location. And I have a replica job that I want to schedule after the copy job is finished since I want to use this backup copy repo as a source for the replica job.
In the selection of the "After this job" (https://helpcenter.veeam.com/docs/vbr/u ... tml?ver=13), I can only select existing backup and replication jobs.
But no backup copy jobs.
Is this something that will be added in a future release?
I do not often use the "after this job" schedule, but in this scenario, it makes sense in my opinion.
-
zadrian
- Expert
- Posts: 161
- Liked: 5 times
- Joined: Jul 14, 2015 8:26 am
- Contact:
Re: How to schedule replication job after backup up copy
The method I used for this replica after backup is to have the Replica to use backup data sets then you will be asked to choose the backup job (or backup copy job, for remote sites).
So when my backup completes, it will kick off the Veeam backup copy to remote site, then after that completes, Veeam will kick off the replica job as Veeam will detect data changes the start the replica job.
So when my backup completes, it will kick off the Veeam backup copy to remote site, then after that completes, Veeam will kick off the replica job as Veeam will detect data changes the start the replica job.
Who is online
Users browsing this forum: Amazon [Bot], Google [Bot], k.terui, Semrush [Bot] and 307 guests