PowerShell script exchange
Post Reply
Raimondas.Visnevskis
Lurker
Posts: 2
Liked: never
Joined: Mar 24, 2014 9:28 am
Full Name: Raimondas Visnevskis
Contact:

Shedule Incremtal, Full-S and Full-A

Post by Raimondas.Visnevskis »

Hello,

I am trying to set VBR 7 to run as follows:

Mon-Thurs / Incrementals
Friday / Full-S

Furthermore, i want to set and active Full to run every four weeks on a Friday.

I am trying to sheduli this using powershell.

I have created a .ps1 file that will run the job and i can run it using windows sheduling.

How would i shedule it so that it would run incrementals Mon-Thu and synthetic full on Friday, but would also run an active full every four weeks on Friday?
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Shedule Incremtal, Full-S and Full-A

Post by veremin »

Mon-Thurs / Incrementals
Friday / Full-S
If I were you, I would schedule this part via GUI and leave the rest to PS.
Furthermore, i want to set and active Full to run every four weeks on a Friday.
The full backup can executed, using Start-VBRJob commandlet with -FullBackup switch.

The question is whether you want to run the script on fourth Friday of every month or just on every fourth Friday. In the former case, you can use just Windows Scheduler, adding nothing to the mentioned commandlet. In the later case, some sort of counter seems to be needed - the one that will check the time passed since the last full backup run.

Thanks.
Raimondas.Visnevskis
Lurker
Posts: 2
Liked: never
Joined: Mar 24, 2014 9:28 am
Full Name: Raimondas Visnevskis
Contact:

Re: Shedule Incremtal, Full-S and Full-A

Post by Raimondas.Visnevskis »

Hi,

Thank you for your reply.

I have Mon-Thur set as Incrementals and have also set Friday to be Synthetic-Full via GUI.

However, if i will leave it like that and also set an Active full to run every four weeks using PS, will it run instead of Synthetic Full on that Friday when they both clash?

Regards
Rai
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Shedule Incremtal, Full-S and Full-A

Post by veremin »

However, if i will leave it like that and also set an Active full to run every four weeks using PS, will it run instead of Synthetic Full on that Friday when they both clash?
The backup job has in-built mechanism preventing it from creating two full backups on the same day. So, just make sure that active full backup executed via PS runs earlier than does synthetic full specified in the job settings, and, then, you're good to go. Thanks.
damccaslin
Lurker
Posts: 1
Liked: never
Joined: Mar 21, 2018 3:12 pm
Full Name: Darrell McCaslin
Contact:

[MERGED] Monthly Backup on demand

Post by damccaslin »

We have a backup job that runs once a month via scripted powershell cmdlets contingent upon other factors...I would only like to keep two restore points (60 days) on local storage.
How do I program a job to do this? I do not see a way to do sort of an "Active Full" via scripting process or I am missing something. TIA
Darrell
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Shedule Incremtal, Full-S and Full-A

Post by veremin » 1 person likes this post

You can use Start-VBRJob cmdlet along with -FullBackup switch. Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests