Host-based backup of VMware vSphere VMs.
Post Reply
rarens
Influencer
Posts: 12
Liked: never
Joined: Apr 15, 2011 8:58 am
Full Name: Reinhard Arens
Contact:

Only Full Backup every second week

Post by rarens »

Hello,

is there a possibility to schedule a full backup every second week ... incremental is not needed ...

Best regards

Reinhard
veremin
Product Manager
Posts: 20406
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Only Full Backup every second week

Post by veremin » 2 people like this post

Yes, just schedule the following script via Windows Scheduler to run on two week basis:

Code: Select all

$Job = Get-VBRJob -name "Name of your backup job"
Start-VBRJob -Job $Job -FullBackup
Thanks.
rarens
Influencer
Posts: 12
Liked: never
Joined: Apr 15, 2011 8:58 am
Full Name: Reinhard Arens
Contact:

Re: Only Full Backup every second week

Post by rarens »

Great ...

Will try it, thank you ...
veremin
Product Manager
Posts: 20406
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Only Full Backup every second week

Post by veremin »

You're welcome. Don't hesitate to let us know, should any other questions arise. Thanks.
rarens
Influencer
Posts: 12
Liked: never
Joined: Apr 15, 2011 8:58 am
Full Name: Reinhard Arens
Contact:

Re: Only Full Backup every second week

Post by rarens »

Can I put it in a .cmd file and call it via commanline to test it?
veremin
Product Manager
Posts: 20406
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Only Full Backup every second week

Post by veremin »

Yes, you can either convert you powershell script into a batch file, as described this article, or create the bat file responsible for execution your PowerShell script, using the following command as a bat-file body:

Code: Select all

Powershell.exe -File C:\YourScript.ps1


Thanks.
rarens
Influencer
Posts: 12
Liked: never
Joined: Apr 15, 2011 8:58 am
Full Name: Reinhard Arens
Contact:

Re: Only Full Backup every second week

Post by rarens »

Is there a environment needed?
When I start PS standanlone, cmdlet not found
when starting PS inside veeam it works ...

thanks a lot for your help
veremin
Product Manager
Posts: 20406
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Only Full Backup every second week

Post by veremin »

In order to use Veeam specific commandlets you should add the VB&R PS snapin in the beginning of the script:

Code: Select all

Add-PSSnapin VeeamPSSnapin
Thanks.
rarens
Influencer
Posts: 12
Liked: never
Joined: Apr 15, 2011 8:58 am
Full Name: Reinhard Arens
Contact:

Re: Only Full Backup every second week

Post by rarens »

Hmm, it is still the same ...

No sorry ... here is the error:
Microsoft SQL server hosting the configuration database is currently unavailable
veremin
Product Manager
Posts: 20406
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Only Full Backup every second week

Post by veremin »

Are you positive the VB&R snap-in is installed on this machine? You can execute PS, run the "install" script stored in the VB&R directory ("
C:\Program Files\Veeam\Backup and Replication\Backup\Install-VeeamToolkit.ps1") and see whether it makes any difference. Thanks.
nefes
Veeam Software
Posts: 649
Liked: 170 times
Joined: Dec 10, 2012 8:44 am
Full Name: Nikita Efes
Contact:

Re: Only Full Backup every second week

Post by nefes »

rarens wrote: No sorry ... here is the error:
Microsoft SQL server hosting the configuration database is currently unavailable
This error usually tells that user you are running script have no rights to Veeam configuration SQL database.
It is usually worth running scripts as service account user.
rarens
Influencer
Posts: 12
Liked: never
Joined: Apr 15, 2011 8:58 am
Full Name: Reinhard Arens
Contact:

Re: Only Full Backup every second week

Post by rarens »

OK, I did "Install-VeeamToolkit.ps1" ... when I close the windows and reopen it, it does not work, do I have to call "Install-VeeamToolkit.ps1" every time?
rarens
Influencer
Posts: 12
Liked: never
Joined: Apr 15, 2011 8:58 am
Full Name: Reinhard Arens
Contact:

Re: Only Full Backup every second week

Post by rarens »

Seems to be a special problem with Windows Server 2012 ... with 2008 it works perfect
veremin
Product Manager
Posts: 20406
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Only Full Backup every second week

Post by veremin »

do I have to call "Install-VeeamToolkit.ps1" every time?
Not, it's one time operation. Can you load the PS snap-in/execute the script under administrator account and see whether the problem persists? Thanks.
rarens
Influencer
Posts: 12
Liked: never
Joined: Apr 15, 2011 8:58 am
Full Name: Reinhard Arens
Contact:

Re: Only Full Backup every second week

Post by rarens »

Yes, the problem persists, that is a administrator account
Vitaliy S.
VP, Product Management
Posts: 27377
Liked: 2800 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Only Full Backup every second week

Post by Vitaliy S. »

rarens wrote:Seems to be a special problem with Windows Server 2012 ... with 2008 it works perfect
Was it Windows Server 2012 or Windows Server 2012 R2?
veremin
Product Manager
Posts: 20406
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Only Full Backup every second week

Post by veremin »

Is this the same account as the one specified for Veeam service? Can you temporarily set db_owner rights to the said account and try to run the script again? Also, it might be worth updating to the Powershell 3.0, if you haven't done it yet. Thanks.
rarens
Influencer
Posts: 12
Liked: never
Joined: Apr 15, 2011 8:58 am
Full Name: Reinhard Arens
Contact:

Re: Only Full Backup every second week

Post by rarens »

OK, should be the same as service account, thank you ... that worked for me
veremin
Product Manager
Posts: 20406
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Only Full Backup every second week

Post by veremin »

Glad to hear that you're up and running now. Should any other questions arise, don't hesitate to let us know. Thanks.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 44 guests