Backup to Tape only last backup with reversed incremental

Everything about backing up to tape

Re: Backup to Tape only last backup with reversed incrementa

Veeam Logoby foggy » Wed Nov 06, 2013 5:58 am

baatch wrote:Is it then possible to start a Veeam tape job with powershell?

I believe you can use Start-VBRJob cmdlet to do that (as in the script provided above).
foggy
Veeam Software
 
Posts: 14752
Liked: 1083 times
Joined: Mon Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson

Re: Backup to Tape only last backup with reversed incrementa

Veeam Logoby v.Eremin » Wed Nov 06, 2013 7:01 am

baatch wrote:Ok thanks for the answear. Is it then possible to start a Veeam tape job with powershell?

Yep, the script should be pretty simple.

First, you get the corresponding tape job. Then, you start it.

Code: Select all
Get-VBRTapeJob -name "Name of your Tape Job" | Start-VBRJob


Thanks.
v.Eremin
Veeam Software
 
Posts: 13291
Liked: 973 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Backup to Tape only last backup with reversed incrementa

Veeam Logoby v.Eremin » Wed Nov 06, 2013 7:42 am

mhaynesVCI wrote:As much as I appreciate this script and the effort by the team it doesn't help us poor SOBs that are using a network repository to store our backups as hardlinks are not supported.

Then, you can automate slightly different approach. The one described above might do the trick for you.

Thanks
v.Eremin
Veeam Software
 
Posts: 13291
Liked: 973 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

[MERGED] : Enhancement Request: Single copy of backup to tap

Veeam Logoby Stuzoo72 » Thu Nov 07, 2013 3:12 am

Currently when we use "Tape Job - Backups" and select a backup job it places all the restore points on to tape.

For jobs with a large retention policy this can be a lot of restore points and a lot of duplicated data. This results in many tapes.

I would like Veeam to add a couple of options for "tape jobs - Backups".
Option 1: Place most recent Full backup to tape only. This would place the most recent full backup to tape, whether this be a reverse incremental, active full or old active full with increments.

Option 2: Place most recent Active Full backup to tape.

These options would allow only the data we require for a single point in time backup to be placed on tape and so reduce the costs associated with having to use tape.

Thanks
Stuzoo72
Novice
 
Posts: 4
Liked: never
Joined: Thu Nov 07, 2013 1:55 am
Location: Sydney
Full Name: Stuart Montgomery

Re: Backup to Tape only last backup with reversed incrementa

Veeam Logoby v.Eremin » Thu Nov 07, 2013 8:02 am

Hi, Stuart,

Yep, you're right. For now there is no functionality that allows you to copy only the latest full backup to tape. So, one of the options you have is to use the file to tape job, as well, hardlinks. The way this process can be automated is described in this post.

Thanks.
v.Eremin
Veeam Software
 
Posts: 13291
Liked: 973 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Backup to Tape only last backup with reversed incrementa

Veeam Logoby sbbots » Mon Nov 25, 2013 8:07 pm 1 person likes this post

v.Eremin wrote:Otherwise, you can create a folder called “Latest VBK” and specify it as a source for “file to tape” job. Within a script you should find the latest .vbk file, copy it to the aforesaid folder, execute corresponding tape job and delete .vbk file once the job is done. Thanks.

This is exactly what I do and it works perfectly. I use a simple BAT file in Windows Task Scheduler to accomplish this.

Create a new "Files-to-Tape" job with no schedule pointing to your "Latest VBK" folder and copy the job ID at the end of the setup. Next, copy the commands below to a text file, change the RED variables to your setup (including the job ID) and save as a BAT file. Lastly, create a task in Windows Task Scheduler to run the BAT file at the time/date of your choosing. If you want to delete the files after the tape job is complete just put a delete command at the end, but ***make sure you set a delay long enough to allow the tape job to finish before deleting the files***. In my setup I choose to manually delete the files myself.


::Delete all files in directory
del /F /Q "F:\Latest VBK\*.*"

::Copy latest VBK to directory
@echo off
echo. |date |find "current" >> "F:\Latest VBK\Log.txt"
echo. |time |find "current" >> "F:\Latest VBK\Log.txt"
set "source=F:\Backups_Daily\VMHOST01"
set "dest=F:\Latest VBK"
pushd "%source%" ||(echo.Source does not exist&pause&goto EOF)
for /f "tokens=*" %%f in ('dir /A-D /OD /B *.vbk') Do set "file=%%f"
popd
xcopy /d /i "%source%\%file%" "%dest%\" >> "F:\Latest VBK\Log.txt"

::Copy latest Veeam Config to directory
@echo off
set "source=F:\Backups_Daily\VeeamConfigBackup\VMHOST01"
set "dest=F:\Latest VBK"
pushd "%source%" ||(echo.Source does not exist&pause&goto EOF)
for /f "tokens=*" %%f in ('dir /A-D /OD /B *.bco') Do set "file=%%f"
popd
xcopy /d /i "%source%\%file%" "%dest%\" >> "F:\Latest VBK\Log.txt"
echo. |time |find "current" >> "F:\Latest VBK\Log.txt"

::Run Veeam backup job
"C:\Program Files\Veeam\Backup and Replication\Backup\Veeam.Backup.Manager.exe" backup c2d493aa-e310-4f6d-a15c-88d1163e67dc
sbbots
Enthusiast
 
Posts: 96
Liked: 25 times
Joined: Fri Aug 16, 2013 5:44 pm
Full Name: Matt B

Re: Backup to Tape only last backup with reversed incrementa

Veeam Logoby mongie » Sun Dec 01, 2013 8:49 pm

I would also like an option to only copy the latest full backup to tape, and not all vbk's in the backup chain since the older vbk is already on an older tape. And space and time are often rare on tapes.


I too am waiting for this functionality...

example:

We keen 5 points of retention on all our backup jobs which run daily, monday to friday (and use archive jobs to keep archive retention).

We run MONTHLY backup to tape jobs for all our backups.

With 5 retention points set on the jobs, we normally have 2 full backups on disk at any one time (Forward Incremental - Dedupe unit). Because we only run the tape job monthly, each time it runs, both full backups are new to the tape job, and it writes both. Some of these backups are 2TB+ and this takes too long to write to tape.
mongie
Expert
 
Posts: 149
Liked: 23 times
Joined: Mon May 16, 2011 4:00 am
Location: Brisbane, Australia
Full Name: Alex Macaronis

Re: Backup to Tape only last backup with reversed incrementa

Veeam Logoby Dima P. » Mon Dec 02, 2013 11:08 am

Alex,
Thank you for providing the valuable use case! We added this request to tape feature list for the upcoming versions.
Dima P.
Veeam Software
 
Posts: 6261
Liked: 441 times
Joined: Mon Feb 04, 2013 2:07 pm
Location: SPb
Full Name: Dmitry Popov

[MERGED] Veeam v7r2 copy to tape scheduling question

Veeam Logoby chadtandy » Wed Dec 11, 2013 5:48 pm

Hi all, we're on Veeam v7r2 and are going to soon be moving from copying Veeam files to tape with Commvault to having Veeam copy directly to tape itself. I've poked around with the scheduling a bit but seem to be missing something. I just want to copy to tape once a week, and I only want to copy the latest full, not the entire backup chain. How do I schedule this?

Thanks, and sorry for my ignorance...

-Chad
chadtandy
Enthusiast
 
Posts: 36
Liked: never
Joined: Tue Feb 09, 2010 8:26 pm
Full Name: Chad

Re: Backup to Tape only last backup with reversed incrementa

Veeam Logoby v.Eremin » Thu Dec 12, 2013 7:19 am

Hi, Chad. Your post has been merged into existing discussion.

Currently, there is no such functionality, so, you have to use workarounds (scripts) mentioned above in order to get what you're after. However, we consider adding this functionality in one of the next product releases.

Thanks.
v.Eremin
Veeam Software
 
Posts: 13291
Liked: 973 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Backup to Tape only last backup with reversed incrementa

Veeam Logoby smallsheep » Tue Jan 07, 2014 11:22 am

I can add my name to the list of those waiting for this functionality. I have a customer who does reverse incremental with backup to tape and they were having instances of two full *.vbk files being backed up in a night which caused the job to spill over onto 2 tapes, they had a standalone drive rather than an auto-changer so this was an issue for them. If it was possible to limit Veeam to backup only the latest full it would be very useful indeed. :)
smallsheep
Lurker
 
Posts: 2
Liked: never
Joined: Tue Jan 07, 2014 11:14 am
Full Name: Matthew O'Brien

Re: Backup to Tape only last backup with reversed incrementa

Veeam Logoby techguy615 » Wed Jan 15, 2014 7:04 pm

I would like to see this as well. I am toying around with a simple way to do this myself. I am trying to eliminate tapes entirely from the process. I currently have 4-4TB drives attached to a hot swap hard drive bay. I am in the process of migrating my file shares to a VM in order to finally give Symantec the boot. So as for now I am attempting to use good old robocopy to do this.

(Assuming E:\ is the local destination)

Batch File Contents:
------------------------
del E:\*.* /q
robocopy <VeeamRepository#1> E:\ *.vbk /MAXAGE:1 /LOG:C:\RobocopyLogs\Backup.log (Copy files from the Main repository to the local E:\ drive with the vbk extension, excluded ANY files that are older than one day).

------------------------
This way I get ONLY the newest .vbk file written to my local E:\ drive and can take it offsite. I have added the batch file to my "Post Job Activity" in the main backup job. I figure from there someone could copy it to tape if needed or possibly incorporate this method to get the files to tape somehow. This is all just theory though. I am about to run a backup and see what happens. I am hoping it will work without too much trouble. I will post back with the results.
techguy615
Novice
 
Posts: 6
Liked: never
Joined: Wed Jan 15, 2014 6:47 pm
Full Name: Chad Webster

Re: Backup to Tape only last backup with reversed incrementa

Veeam Logoby v.Eremin » Thu Jan 16, 2014 8:39 am

Hi, Chad, haven't you tried to use backup copy job, instead of Robocopy? We have introduced recently some code improvements that allow backup copy job to work with rotated medias; might be worth taking a look.

Thanks.
v.Eremin
Veeam Software
 
Posts: 13291
Liked: 973 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Backup to Tape only last backup with reversed incrementa

Veeam Logoby techguy615 » Thu Jan 16, 2014 5:46 pm

I have been playing around with it a bit. I am thinking if I tell it to only keep one restore point it should get the latest vbk file only and not the incremental backup files. Robocopy isn't a preferred way to do any of this of course. I was just looking for a workaround to get something to disk for off site. Everything else seems to be working fine as far as I can tell.
techguy615
Novice
 
Posts: 6
Liked: never
Joined: Wed Jan 15, 2014 6:47 pm
Full Name: Chad Webster

Re: Backup to Tape only last backup with reversed incrementa

Veeam Logoby v.Eremin » Thu Jan 16, 2014 8:41 pm

I am thinking if I tell it to only keep one restore point it should get the latest vbk file only and not the incremental backup files.

First of all, the backup copy job doesn't t copy backup file as a whole, but rather synthetically creates required restore points in "target" location from VM data in source backup repositories. Also, with the backup copy job the least number of restore points that can be set is 2. So, with the backup copy job you will always have at least 2 restore points (1 .vbk, 1 .vib). However, with the referenced regkey, backup copy job should work perfectly with rotated media.

So, it's certainly worth trying.

Thanks.
v.Eremin
Veeam Software
 
Posts: 13291
Liked: 973 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

PreviousNext

Return to Tape



Who is online

Users browsing this forum: JasonBailey and 6 guests