-
- Veteran
- Posts: 459
- Liked: 5 times
- Joined: Feb 01, 2012 12:04 pm
- Full Name: Mario
- Contact:
Editing replica jobs
I have many replica jobs to update.
The fields I need to update are:
- source (backup repository - select all)
- repository for replica metadata
Is there any sample I can start from?
Regards
marius
The fields I need to update are:
- source (backup repository - select all)
- repository for replica metadata
Is there any sample I can start from?
Regards
marius
-
- Product Manager
- Posts: 6551
- Liked: 765 times
- Joined: May 19, 2015 1:46 pm
- Contact:
Re: Editing replica jobs
Hi,
Here is an article (another one for v9) with a couple of examples, worth taking a look.
Thank you.
Here is an article (another one for v9) with a couple of examples, worth taking a look.
Thank you.
-
- Veteran
- Posts: 459
- Liked: 5 times
- Joined: Feb 01, 2012 12:04 pm
- Full Name: Mario
- Contact:
Re: Editing replica jobs
Thank you for your message.
I am still confused.
I need to configure my replica job to use a backup as its source and I attempted to build a job based on the sapmle you provided, but it does not work:
I need to set the repository as well for replica metadata.
Can anybody please help?
Regards
marius
I am still confused.
I need to configure my replica job to use a backup as its source and I attempted to build a job based on the sapmle you provided, but it does not work:
Code: Select all
Asnp VeeamPSSnapin
$job = Get-VBRJob -Name "MyReplica"
$repository = $repository = Get-VBRBackupRepository -Name "MyBackup"
Set-VBRViReplicaJob -Job $job -Replicatefrombackup -Sourcerepository $repository
Can anybody please help?
Regards
marius
-
- Product Manager
- Posts: 20415
- Liked: 2302 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Editing replica jobs
One $Repository variable appears to be unnecessary.
I've just checked the following script and everything seems to have worked properly:
Thanks.
I've just checked the following script and everything seems to have worked properly:
Code: Select all
Asnp VeeamPSSnapin
$Job = Get-VBRJob -name "Name of your replication job"
$SourceRepository = Get-VBRBackupRepository -Name "Name of your source repository"
$MetaRepository = Get-VBRBackupRepository -Name "Name of your repository to store metadata"
Set-VBRViReplicaJob -Job $Job -ReplicateFromBackup -SourceRepository $SourceRepository -BackupRepository $MetaRepository
-
- Veteran
- Posts: 459
- Liked: 5 times
- Joined: Feb 01, 2012 12:04 pm
- Full Name: Mario
- Contact:
Re: Editing replica jobs
Thank you for the useful sample.
It works fine and it solves my issue.
Let me just ask for a further information: is it normal getting a detailed list ot all the job's properties after issuing the Set-VBRViReplicaJob command?
Can I suppress it?
Regards
marius
It works fine and it solves my issue.
Let me just ask for a further information: is it normal getting a detailed list ot all the job's properties after issuing the Set-VBRViReplicaJob command?
Can I suppress it?
Regards
marius
-
- Product Manager
- Posts: 20415
- Liked: 2302 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Editing replica jobs
Correct, most of PS cmdlets return a modified object.is it normal getting a detailed list ot all the job's properties after issuing the Set-VBRViReplicaJob command?
Yes, by using Out-Null cmdlet.Can I suppress it?
Code: Select all
Set-VBRViReplicaJob -Job $Job -ReplicateFromBackup -SourceRepository $SourceRepository -BackupRepository $MetaRepository | Out-Null
-
- Veteran
- Posts: 459
- Liked: 5 times
- Joined: Feb 01, 2012 12:04 pm
- Full Name: Mario
- Contact:
Re: Editing replica jobs
Just to let you know that we used the code and everything is ok.
Many thanks
Marius
Many thanks
Marius
-
- Product Manager
- Posts: 20415
- Liked: 2302 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Editing replica jobs
As always, we're happy to help. Glad to hear that we were able to answer your requirements. Thanks.
Who is online
Users browsing this forum: No registered users and 6 guests