Transform previuos full backup to roll backup

PowerShell script exchange

Transform previuos full backup to roll backup

Veeam Logoby kalluri » Wed Feb 13, 2013 12:44 pm

Hi

I would like to do we have any script to run the transform previous full backup to roll back manually instead of scheduling to weekly in automatic mode.
kalluri
Lurker
 
Posts: 2
Liked: never
Joined: Wed Feb 13, 2013 12:39 pm
Full Name: chaitanya kumar

Re: Transform previuos full backup to roll backup

Veeam Logoby v.Eremin » Wed Feb 13, 2013 1:59 pm

If I've understood you correctly, the following script is likely to meet your requirements:

Code: Select all
Add-PSSnapin VeeamPSSnapin
$Job = Get-Vbrjob -name "Name of your job"
$OptionsToSet = $Job | Get-VBRJobOptions
$TransformIncrementsToSyntethic = $OptionsToSet.BackupTargetOptions.TransformIncrementsToSyntethic
$TransformToSyntethicDays = $OptionsToSet.BackupTargetOptions.TransformToSyntethicDays
$OptionsToSet.BackupTargetOptions.TransformIncrementsToSyntethic = $True
$OptionsToSet.BackupTargetOptions.TransformToSyntethicDays = (Get-Date).DayOfWeek
$Job.SetOptions($OptionsToSet)
Start-VBRJob -Job $Job
$OptionsToSet.BackupTargetOptions.TransformIncrementsToSyntethic = $TransformIncrementsToSyntethic
$OptionsToSet.BackupTargetOptions.TransformToSyntethicDays = $TransformToSyntethicDays
$Job.SetOptions($OptionsToSet)


1. Firstly, it saves original synthetic full schedule options.
2. Then, it enables “Transform previous full backup chain into rollbacks” setting.
3. After that, it gets actual date and sets it as the day for synthetic full backup.
4. Finally, it starts the job which according to the previously modified options performs synthetic full backup, transforming previous full backup chain into rollbacks.
5. When job finishes, settings are set to original values.

Hope this helps.
Thanks.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 4 guests