Need ad-hoc backup of specific files

Backup agent for Microsoft Windows servers and workstations (formerly Veeam Endpoint Backup FREE)

Need ad-hoc backup of specific files

Veeam Logoby MCU_Networking » Sun Jan 29, 2017 11:51 pm

I currently have Endpoint installed. I am Backing up the entire server to Veeam B&R repository. I need to have a monthly backup of everything on the D: drive but one specific folder. What are my options? I keep 101 restore points of this server so I cannot risk corrupting the chain because of a space issue. It is all working great, I just need to add the monthly ad-hoc backup of certain folders. Can I manually change the job settings to backup just the folders I want, run the backup, and then change the job back to what it was and it preserve the previous incremental chain? Or will it corrupt/mess it up and it will have to create a new full an go from there? Is there a config file somewhere I can script swapping out? Is there something in the SQL database I can change out efficiently? Management wants a end of the month backup starting this month so hopefully someone will be able to answer this.


Here is a visual, I want to backup the entire D: but exclude the folder called "C":
D:\
D:\A
D:\B
D:\C
D:\D

If you must know, C folder contains nothing but basically stagnant data, only additions to it, so there is no point in including it, plus it is 300GB while A,B and D are only 60GB uncompressed/not de-duped.




As for the upcoming 2.0, is there any options there with Powershell that will help me? I am talking specifically being able to edit job settings in Powershell, or even the API for that matter? Of course it would only help if I can change the job to only certain folders, run the job, then change back to previous config and continue on like nothing ever happened.
MCU_Networking
Influencer
 
Posts: 13
Liked: 5 times
Joined: Mon May 02, 2016 10:21 pm
Full Name: Michael Taylor

Re: Need ad-hoc backup of specific files

Veeam Logoby MCU_Networking » Mon Jan 30, 2017 10:35 pm

I tried a couple different variations of editing the jobs to a smaller selection to get just the files I wanted then changing it back but all of them corrupted the chain/caused a full to run next.
MCU_Networking
Influencer
 
Posts: 13
Liked: 5 times
Joined: Mon May 02, 2016 10:21 pm
Full Name: Michael Taylor

Re: Need ad-hoc backup of specific files

Veeam Logoby Dima P. » Tue Feb 07, 2017 7:03 pm

Hi Michael,

Sorry for keeping silence. Here is the idea: with the help of built-in API you can keep two config files and swap them when required. Thinking about automation – swap and backup can be scheduled via Windows Task Scheduler.

Preparations:

1. Setup VAW
2. Configure 'main backup job'. Export this config to a file Veeam.Agent.Configurator.exe -export /f:C:\Veeam\MainBackupJob.xml
3. Edit the config in UI as a ‘secondary job’ (different source files / options / target). Export this config to a file Veeam.Agent.Configurator.exe -export /f:C:\Veeam\SecondaryBackupJob.xml
4. Keep in mind that backup location should be different for both configs, otherwise it wont work

Create a bat script and optionally add it to windows task scheduler with desired schedule. Script sample below will do the following:

1. Export 'main backup job' config to a folder to keep it safe
2. Import 'secondary backup job 'config to VAW
3. Start a backup for secondary config
4. Export secondary config (might be useful if it was modified)
5. Import main backup config back to VAW

Code: Select all
@echo off
cd C:\Program Files\Veeam\EndPoint Backup
Veeam.Agent.Configurator.exe -export /f:C:\Veeam\MainBackupJob.xml
Veeam.Agent.Configurator.exe -import /f:C:\Veeam\SecondaryBackupJob.xml
Veeam.EndPoint.Manager.exe /backup
Veeam.Agent.Configurator.exe -export /f:C:\Veeam\SecondaryBackupJob.xml
Veeam.Agent.Configurator.exe -import /f:C:\Veeam\MainBackupJob.xml
Dima P.
Veeam Software
 
Posts: 6683
Liked: 478 times
Joined: Mon Feb 04, 2013 2:07 pm
Location: SPb
Full Name: Dmitry Popov

Re: Need ad-hoc backup of specific files

Veeam Logoby MCU_Networking » Sun Feb 12, 2017 10:16 pm

How would this be different from manually performing the following steps, in respective to corrupting the chain or not:

1.Run main Incremental
2.Change config for backing up specific files
3.Run job
4.Change config back
5.Run backup like nothing happened(although in my test with current Endpoint Free it corrupted the chain)


So are you saying with VAW(Any edition) that if I import/export/swap configs that it won't corrupt the chain of the original forever incremental main job?
MCU_Networking
Influencer
 
Posts: 13
Liked: 5 times
Joined: Mon May 02, 2016 10:21 pm
Full Name: Michael Taylor

Re: Need ad-hoc backup of specific files

Veeam Logoby Dima P. » Mon Feb 13, 2017 10:46 pm

would this be different from manually performing the following steps

Same. API just allows to automate the process.
VAW(Any edition) that if I import/export/swap configs that it won't corrupt the chain of the original forever incremental main job?

It should not corrupt the chain. Rescan is performed at the beginning of every backup job, thus DB gets updated with a new backup information. API is supported in the paid editions.
Dima P.
Veeam Software
 
Posts: 6683
Liked: 478 times
Joined: Mon Feb 04, 2013 2:07 pm
Location: SPb
Full Name: Dmitry Popov

Re: Need ad-hoc backup of specific files

Veeam Logoby audax » Tue Feb 14, 2017 9:16 am

Hi Dima,
will this also work on VEB 1.5?

Tomaz
audax
Novice
 
Posts: 3
Liked: never
Joined: Wed Jan 25, 2017 9:07 am

Re: Need ad-hoc backup of specific files

Veeam Logoby Dima P. » Tue Feb 14, 2017 11:20 am

Hi audax,

No VEB 1.5 does not have this API.
Dima P.
Veeam Software
 
Posts: 6683
Liked: 478 times
Joined: Mon Feb 04, 2013 2:07 pm
Location: SPb
Full Name: Dmitry Popov

Re: Need ad-hoc backup of specific files

Veeam Logoby MCU_Networking » Sun Feb 19, 2017 9:49 pm

Dima P, when you say "It should not corrupt the chain. Rescan is performed at the beginning of every backup job, thus DB gets updated with a new backup information. API is supported in the paid editions." are you speaking from experience?

As I said in my test, it corrupted the backup chain causing a Full to be ran next. So are you saying it shouldn't have in my case, or with the new VAW 2.0 with API that it won't then?
MCU_Networking
Influencer
 
Posts: 13
Liked: 5 times
Joined: Mon May 02, 2016 10:21 pm
Full Name: Michael Taylor

Re: Need ad-hoc backup of specific files

Veeam Logoby Dima P. » Mon Feb 20, 2017 8:32 pm

Michael,

I am testing this solution and it works fine in my lab. Will have another config swap tomorrow all day long and report back. Stay tuned.
Dima P.
Veeam Software
 
Posts: 6683
Liked: 478 times
Joined: Mon Feb 04, 2013 2:07 pm
Location: SPb
Full Name: Dmitry Popov

Re: Need ad-hoc backup of specific files

Veeam Logoby borismittelmann » Thu Mar 16, 2017 6:03 am

Hi Dima,
I'm staying tuned with Michael...how it went?

Bo.
borismittelmann
Veeam Software
 
Posts: 38
Liked: 1 time
Joined: Mon Jul 01, 2013 1:27 pm
Full Name: Boris Mittelmann

Re: Need ad-hoc backup of specific files

Veeam Logoby Dima P. » Thu Mar 16, 2017 8:42 pm

We have two separate labs for testing this functionality, so far so good.
Dima P.
Veeam Software
 
Posts: 6683
Liked: 478 times
Joined: Mon Feb 04, 2013 2:07 pm
Location: SPb
Full Name: Dmitry Popov

Re: Need ad-hoc backup of specific files

Veeam Logoby dellock6 » Sun Mar 19, 2017 9:38 am

Just a confirmation here, I have a windows machine with a double target (one local VBR server, and one account in Veeam Cloud Connect) since a week, and the script to switch the backup plan is working perfectly. I'll post this upcoming week a blog post to show in details how it works.
Luca Dell'Oca
EMEA Cloud Architect @ Veeam Software

@dellock6
http://www.virtualtothecore.com
vExpert 2011-2012-2013-2014-2015-2016
Veeam VMCE #1
dellock6
Veeam Software
 
Posts: 5138
Liked: 1381 times
Joined: Sun Jul 26, 2009 3:39 pm
Location: Varese, Italy
Full Name: Luca Dell'Oca

Re: Need ad-hoc backup of specific files

Veeam Logoby MCU_Networking » Sun Mar 19, 2017 10:12 pm

Any information so I don't have to wait, it has been a month and I haven't heard anything when there is supposedly a solution? I need to know if I am doing it wrong or clarification whether what I want is even available in Endpoint Free 1.5.
MCU_Networking
Influencer
 
Posts: 13
Liked: 5 times
Joined: Mon May 02, 2016 10:21 pm
Full Name: Michael Taylor

Re: Need ad-hoc backup of specific files

Veeam Logoby Mike Resseler » Mon Mar 20, 2017 6:23 am

Hi Michael,

The proposed solution with the API won't work with Endpoint Free 1.5 I'm afraid as it doesn't have this API
Mike Resseler
Veeam Software
 
Posts: 3382
Liked: 384 times
Joined: Fri Feb 08, 2013 3:08 pm
Location: Belgium, the land of the fries, the beer, the chocolate and the diamonds...
Full Name: Mike Resseler

Re: Need ad-hoc backup of specific files

Veeam Logoby MCU_Networking » Mon Mar 20, 2017 7:21 pm

The following question is still unanswered by Veeam:

With Veeam Endpoint Free 1.5 are you able to switch the configs without corrupting the chain?


Dima P and dellock6 both say they "can get it to work" but neither as far as I can tell have told me whether their successful testing is with Veam Endpoint Free or the BETA VAW.
MCU_Networking
Influencer
 
Posts: 13
Liked: 5 times
Joined: Mon May 02, 2016 10:21 pm
Full Name: Michael Taylor

Next

Return to Veeam Agent for Windows



Who is online

Users browsing this forum: No registered users and 1 guest