Comprehensive data protection for all workloads
Post Reply
Batman
Novice
Posts: 7
Liked: never
Joined: Dec 14, 2020 8:26 am
Contact:

Weekly Backup Cycle

Post by Batman »

Hi All,

i need your help, i'm new on veeam B&R.
We'd like all backups cycle to be 4 weeks,
should i use retention policy, GFS ? what is the best way.

Thanks,
Andreas Neufert
VP, Product Management
Posts: 6748
Liked: 1408 times
Joined: May 04, 2011 8:36 am
Full Name: Andreas Neufert
Location: Germany
Contact:

Re: Weekly Backup Cycle

Post by Andreas Neufert »

Can you please clarify. Do you mean 4 weeks of daily backups ?

Anyway select 28 restore points or days in the job. GFS is not really needed as it is used for long term backups.
Batman
Novice
Posts: 7
Liked: never
Joined: Dec 14, 2020 8:26 am
Contact:

Re: Weekly Backup Cycle

Post by Batman »

Hi Andreas,
Sorry, I did not explain myself well.
i need backup all days of the week (Sun,Mon,Tu,Wed,Thu,Fr,Sa) and they start again new backup Sunday and this during 4 weeks .
is it possible?

thanks a lot.
Andreas Neufert
VP, Product Management
Posts: 6748
Liked: 1408 times
Joined: May 04, 2011 8:36 am
Full Name: Andreas Neufert
Location: Germany
Contact:

Re: Weekly Backup Cycle

Post by Andreas Neufert » 1 person likes this post

Sure.
The default Veeam VMware/Hyper-V Job setting will do exactly this when you set 28 restore points.
It is called Synthetic Full + Incremental processing with weekly Synthetic full. You can select the date for the Synthetic Full in the wizard.
https://helpcenter.veeam.com/docs/backu ... ml?ver=100
https://helpcenter.veeam.com/docs/backu ... ml?ver=100
Batman
Novice
Posts: 7
Liked: never
Joined: Dec 14, 2020 8:26 am
Contact:

Re: Weekly Backup Cycle

Post by Batman »

Ok i will do.

Thanks,
habibalby
Veteran
Posts: 391
Liked: 32 times
Joined: Jul 18, 2011 9:30 am
Full Name: Hussain Al Sayed
Location: Bahrain
Contact:

Re: Weekly Backup Cycle

Post by habibalby » 1 person likes this post

Hello,
You can create PowerShell script for each job and use Task Scheduler in Windows with .bat script to run the PowerShell script for the VBR-Job. Then you can schedule the Task Scheduler when to run from Sun~Thu or Mon~Fri, according to your needs.

For the weekly backups, you can use the Advanced Option in Storage for each Job and schedule the Active Full Backup according to your needs, mine is set on Friday. And create another script for the same job with different task scheduler that runs on Friday/Sat for the full backups.

Code: Select all

Add-PSSnapin VeeamPSSnapin

# Add the name of the backup jobs to be included here. The order in which they are entered is the order in which they will run

$chainedjobs = (“Critical VMs-5 -> Tape”)

foreach ($jobname in $chainedjobs){
$job = Get-VBRJob -name $jobname
$jobtry = 0
start-VBRJob -job $job

$job.GetLastResult()
if($job.GetLastResult() -eq “Failed”){
do{
Start-Sleep 480
Start-VBRJob -job $job -RetryBackup
$jobtry++
}
while(($jobtry -lt 3) -and ($job.GetLastResult() -eq “Failed”))
}
}
Batch script to use it for Task Schduler to run the PowerShell script;

Code: Select all

Powershell.exe "C:\Scripts\CriticalVMs-5 - Tape.ps1"
Hope it helps.

Thanks,
Hussain
habibalby
Veteran
Posts: 391
Liked: 32 times
Joined: Jul 18, 2011 9:30 am
Full Name: Hussain Al Sayed
Location: Bahrain
Contact:

Re: Weekly Backup Cycle

Post by habibalby » 1 person likes this post

Hello,

Forgot to mention the retention restore points policy.. This is all depends on your and the organization policy for how long you want to retain data on disks before got deleted.

When you configure a job and run it for the first time, it will runs in Full Backup and will create a vbk file, if you run it next time it will start running as incremental and create .vbr file. The .vbr files will be created until the job reached the configured restore points. And this is all depending on your disk storage as well. I've struggled with this enough until I came with a number that sustain my storage and my immediate restoration from disks. Retention Policy #5 Restore Points. In Advanced -> Maintenance "Full Backup File Maintenance" EnabledRemove deleted items data after #5 days.

What does this config do; it runs Friday as Full Backups and then Sun~Thu incremental backups. #CheckPoint('OnWednesday')
Retention Policy #5 Restore Points
it deletes previous week backups on Wednesday.

My Tape backup jobs starts from last full backups on Friday until Sunday.

Thanks,
Batman
Novice
Posts: 7
Liked: never
Joined: Dec 14, 2020 8:26 am
Contact:

Re: Weekly Backup Cycle

Post by Batman »

Thanks habib_Kalbi :) , i will try the script and let you know.
habibalby
Veteran
Posts: 391
Liked: 32 times
Joined: Jul 18, 2011 9:30 am
Full Name: Hussain Al Sayed
Location: Bahrain
Contact:

Re: Weekly Backup Cycle

Post by habibalby »

Let us know how it goes please.

Thanks,
Post Reply

Who is online

Users browsing this forum: Amazon [Bot], Google [Bot], great_vc, Semrush [Bot], ybarrap2003 and 15 guests