-
- Enthusiast
- Posts: 59
- Liked: 2 times
- Joined: Nov 18, 2015 10:12 am
- Full Name: Freddie
- Contact:
Maintenance window schedule
Hi, we currently have daily backups of a SQL server that we run an escrow job on once a month.
We are currently stopping this backup manually on the 25th of every month, however, we would like to automate this backup to stop for that day, or even during a certain time period on the 25th every month.
is there a way to script this using a scheduled task for instance to disable and then re-enable the backups once a month?
We are currently stopping this backup manually on the 25th of every month, however, we would like to automate this backup to stop for that day, or even during a certain time period on the 25th every month.
is there a way to script this using a scheduled task for instance to disable and then re-enable the backups once a month?
-
- Product Manager
- Posts: 20413
- Liked: 2301 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Maintenance window schedule
Schedule the following scripts via Windows Task Scheduler and you're good to go:
Thanks.
Code: Select all
Asnp VeeamPSSnapin
Get-VBRJob -name "Name of your backup Job" | Disable-VBRJob
Code: Select all
Asnp VeeamPSSnapin
Get-VBRJob -name "Name of your backup Job" | Enable-VBRJob
-
- Enthusiast
- Posts: 59
- Liked: 2 times
- Joined: Nov 18, 2015 10:12 am
- Full Name: Freddie
- Contact:
Re: Maintenance window schedule
Great,
Thank you very much
Thank you very much
-
- Enthusiast
- Posts: 59
- Liked: 2 times
- Joined: Nov 18, 2015 10:12 am
- Full Name: Freddie
- Contact:
Re: Maintenance window schedule
Hi Vladimir,
I have just checked on the server that we require the powershell script to be used, and there is no icon for powershell from there. I have checked on some other Veeam servers and we can access it from the tools menu, however, on this particular veeam server the icon is not available
I have just checked on the server that we require the powershell script to be used, and there is no icon for powershell from there. I have checked on some other Veeam servers and we can access it from the tools menu, however, on this particular veeam server the icon is not available
-
- Product Manager
- Posts: 20413
- Liked: 2301 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Maintenance window schedule
What product version are you currently at? What happens if you open Windows PowerShell and try to add our PowerShell snap-in, using the following command:
If you get error or something similar, kindly, install PowerShell snap-in, using VB&R installation file.
Everything above applies to versions prior to 9, because version 9 has PS snap-in installed by default.
Thanks.
Code: Select all
Asnp VeeamPSSnapin
Everything above applies to versions prior to 9, because version 9 has PS snap-in installed by default.
Thanks.
Who is online
Users browsing this forum: No registered users and 16 guests