Comprehensive data protection for all workloads
Post Reply
grietvandemaele
Novice
Posts: 3
Liked: never
Joined: Oct 22, 2013 12:15 pm

Removable external media

Post by grietvandemaele »

Is it possible to implement the health check (crc) in the old copy job. The old copy job is very useful to backup the vbk file to an external disc, but there is no crc check and also no e-mail notification possible.
We ask this feature request because the veeam backup copy job is not ready for removable external media.
Vitaliy S.
VP, Product Management
Posts: 27117
Liked: 2720 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Removable external media

Post by Vitaliy S. »

Griet,

Can you please clarify your request? Are you referring to file copy jobs to move backup files to external disk? Also can you please tell me what issues you've encountered with backup copy jobs while targeting them to external media?

Thanks for the feedback!
grietvandemaele
Novice
Posts: 3
Liked: never
Joined: Oct 22, 2013 12:15 pm

Re: Removable external media

Post by grietvandemaele »

Indeed file copy jobs to move backup files to external disk.
The problem with the backup copy job and external media is the switch between the media. We need to delete the repository and create a new set each time the external disc is switches. For the moment this problem is fixed with a ps script that runs after the veeam backup job.

Code: Select all

# Import Veeam Snapin and we do not want Errors
asnp -Name VeeamPSSnapin -ErrorAction SilentlyContinue

# JobName here
$jobName          = "Backup Copy Job"

# Get Backup Specs
$backup           = Get-VBRBackup -Name $jobName

# Get FilePath
$backupfilepath   = ($backup.GetStorages() | ?{$_.GetStorageType() -eq "vbk"}).FilePath

# Get Directory for deleting
$backupdirpath    = ($backup.GetStorages() | ?{$_.GetStorageType() -eq "vbk"}).DirPath

# If current active VBK is found on media then media has not been rotated
if (-not(Test-Path "$backupfilepath")) {
    # Current active VBK was not found indicating media has been changed
    # First DisableScheduler, If not then the Copy Job will Create a new Directory like $Jobname_1
    
    # Get-Job Object
    $CopyJob      = Get-VBRJob -Name $jobName
    
    # Disbale Scheduler
    $CopyJob.DisableScheduler()
    
    # then Wait until Job is Stopped (and is not running anymore)
    while (-not($CopyJob.IsStopped())) { 
        # Do Nothing 
    }
    
    # If stopped then Delete from VeeamGUI
    $backup.Delete()
    
    # Remove Backup Files from Media
    if (Test-Path "$backupdirpath") {
        # Remove whole Directory
        Remove-Item -Path "$backupdirpath" -Recurse
    }
    # Enable Scheduler
    $CopyJob.EnableScheduler()
}
With this script there are still some circumstances where the jobs reports a failed or warning status.
Vitaliy S.
VP, Product Management
Posts: 27117
Liked: 2720 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Removable external media

Post by Vitaliy S. »

Ok, thanks for your feedback again. We are planning to enhance our support for scenarios with backup copy jobs and rotated drives used as a backup repositories in our next releases.
Post Reply

Who is online

Users browsing this forum: No registered users and 108 guests