I have 2 sites, 2 B&R servers, 2 REepository servers and am running the following script on both servers (well 2 scripts since I synch both the local and remote repositories from each B&R server). This is run on the Main B&R server
# Notes
# This script opens a connection with the local Veeam Backup Server and Synchronizes teh contents of the Long Term
# repository with the database.
#
Add-PSSnapin VeeamPSSnapin
Connect-VBRServer
$repo = Get-VBRBackupRepository -Name "R-SiteLong Term" -ScaleOut
$Sync = Sync-VBRBackupRepository -Repository $repo
Write-Output "Synching DR-Site Long Term repository"
Start-Sleep -s 600
$repo = Get-VBRBackupRepository -Name "DR-Site Main"
$Sync = Sync-VBRBackupRepository -Repository $repo
Write-Output "Synching DR-Site Main repository"
Start-Sleep -s 600
Disconnect-VBRServer
Here's the question...
How can I tell if this is actually working?? there is never a status, nor is there a way of getting the Sync-vbrbackuprepository command to actually give feedback.. or is there??
-
- Expert
- Posts: 148
- Liked: 11 times
- Joined: Aug 20, 2013 1:16 pm
- Full Name: Roger Dufour
- Contact:
-
- Product Manager
- Posts: 8191
- Liked: 1322 times
- Joined: Feb 08, 2013 3:08 pm
- Full Name: Mike Resseler
- Location: Belgium
- Contact:
Re: Synch Repository Commands
Unfortunately I can't test at this moment but can you run this, and then do a Get-VBRBackupRepository -Name "something" again, and then do a print all of the parameters of that object? I wouldn't be surprised if the last sync status is in there. (But as said, I can't connect to an environment right now so not sure...)
-
- Expert
- Posts: 148
- Liked: 11 times
- Joined: Aug 20, 2013 1:16 pm
- Full Name: Roger Dufour
- Contact:
Re: Synch Repository Commands
I checked with support (while working another case) and their response led me to believe that my methodology wasn't going to work in any case... so this is a bust... I had to change the paradigm so that the only thing that is pulled is a replication... and from the source VMs.
All the other stuff (backups, local and remote backup copies) have to be initiated from the source side.
All the other stuff (backups, local and remote backup copies) have to be initiated from the source side.
-
- Service Provider
- Posts: 49
- Liked: 15 times
- Joined: May 29, 2018 8:42 pm
- Contact:
Re: Synch Repository Commands
While this solution is no longer relevant this is how you would need to monitor this rescan.
Code: Select all
$Syncs = Sync-VBRBackupRepository -Repository $repo
Do{
Sleep 10
$Waiting = $false
foreach($Sync in $Syncs){
if(![Veeam.Backup.Core.CBaseSession]::Get($Sync.ID).IsCompleted){
$Waiting = $true
}
}
}While($Waiting)
#Sync is Done
Who is online
Users browsing this forum: No registered users and 17 guests