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 joergr » Mon Aug 19, 2013 9:09 am

absolutely correct. i will take care of this myself. i simply wanted a very very trivial mechanism which does a really full backup every day to tape without caring about retention, logic, etc - this i would do myself. see, again, this is for an experiment in our test lab. many people i know want such an extremely trivial thing. and that was my idea all about ;-)
joergr
Expert
 
Posts: 377
Liked: 39 times
Joined: Tue Jun 08, 2010 2:01 pm
Full Name: Joerg Riether

Re: Backup to Tape only last backup with reversed incrementa

Veeam Logoby v.Eremin » Mon Aug 19, 2013 9:35 am

I could point my backup to tape from files right to that hardlink dir and after the job kill the hardlinks again. Would that work?

Honestly, I’ve just done a quick search in order to find a way how a source for “file to tape” job can be changed via PS and it seems that there are none – it can be specified only during the job creation. Therefore, you’ll probably have to create a “file to tape” job within the script and delete it afterwards, once copy operation is finished.

Thanks.
v.Eremin
Veeam Software
 
Posts: 13296
Liked: 974 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 » Mon Aug 19, 2013 10:05 am

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.
v.Eremin
Veeam Software
 
Posts: 13296
Liked: 974 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 joergr » Mon Aug 19, 2013 10:55 am

;-) i already posted that script and i don´t need to copy all the vbk files because i will try the hardlink approach. please read my previous post where i posted the ps script and tell me what you think about it.
joergr
Expert
 
Posts: 377
Liked: 39 times
Joined: Tue Jun 08, 2010 2:01 pm
Full Name: Joerg Riether

Re: Backup to Tape only last backup with reversed incrementa

Veeam Logoby v.Eremin » Mon Aug 19, 2013 11:02 am

Oh, my bad, I’ve missed the point slightly. :) Yep, the usage of the hardlinks might do the trick, indeed; though, it still needs to be verified further. Thanks.
v.Eremin
Veeam Software
 
Posts: 13296
Liked: 974 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 joergr » Mon Aug 19, 2013 11:04 am

yep, thats what i am doing right now. i will let you know the results.
joergr
Expert
 
Posts: 377
Liked: 39 times
Joined: Tue Jun 08, 2010 2:01 pm
Full Name: Joerg Riether

Re: Backup to Tape only last backup with reversed incrementa

Veeam Logoby joergr » Mon Aug 19, 2013 1:55 pm 3 people like this post

It works. Here is the script. Please do NOT use this if you do not know 100% what you are doing. This is for pure experimental in test labs! It will erase any online tape it finds!


Code: Select all
# create hardlinks from latest vbk files, erase online tape media and start backup job
# joerg riether
# august 2013
# NOT for ANY production use!
# only for experimetal purposes in testlabs
# please do NOT use this if you are not 100% sure what you are doing, this will erase your tape media!

add-pssnapin veeampssnapin

# Settings

$linkpath = "d:\veeam\veeam-hardlinks\"
$backuppath = "d:\veeam\veeam-backup\"

# kill previous hard links

del $linkpath*.*

# use with caution
# this will kill everything it finds in the drives

$tape = get-vbrtapemedium | Where-Object {$_.IsOnline -like "True"}
Erase-VBRTapeMedium -Medium $tape -Confirm:$false

# this will find the latest vbk files for you recursively starting from your backup path.

$files = dir $backuppath -filter "*.vbk" -rec
$filteredfiles = $files | group directory | foreach {@($_.group | sort {[datetime]$_.creationtime} -desc)[0]}

# this loop will separate path and name and it will create your hard links

ForEach ($File in $filteredfiles)
        {
        $FilePath = $File.DirectoryName
        $FileName = $File.Name
        cmd /c mklink /H $linkpath$Filename $Filepath\$Filename
        }

# call your backup to tape from file job pointing to your hard link path

Start-VBRJob -Job "FileToTapeL" -FullBackup
joergr
Expert
 
Posts: 377
Liked: 39 times
Joined: Tue Jun 08, 2010 2:01 pm
Full Name: Joerg Riether

[MERGED] : Backup to tape / copy to tape, Restore Info

Veeam Logoby nterreault » Wed Sep 18, 2013 7:53 pm

Here couple of questions

Right now we are doing a backup job to disk for each VM setup in incremental (monday-thursday) + Active full (every friday).
I want to get that Active full to tape.

After my regular backup to disk are done should i do the following ?

1- Launch A Backup to tape selecting only full
But there is no option to select only the last vbk file

or

2- Launch a file to tape selecting only the latest vbk file

I'm not sure and If im not wrong i read somewhere on the forum if you have multiple active full backup for 1 vm, the first backup take all .vbk file but the next backup to tape will take only the latest vbk file will be taken is that right ?

Can we do guest os files restore within the backup or copy job to tape ? from my testing its not seem possible from the copy job to tape, there were no option to do it, but would like confirmation.

Thanks

Nico
nterreault
Influencer
 
Posts: 10
Liked: never
Joined: Wed Sep 18, 2013 7:03 pm

Re: Backup to Tape only last backup with reversed incrementa

Veeam Logoby v.Eremin » Thu Sep 19, 2013 11:22 am

With the current implementation it’s not possible to copy only the latest .vbk file to tape, using “backup to tape” job. So, the feasible idea in this case would to utilize be “file to tape” job in conjunction with the hardlinks. The example of how this process can be automated is provided above; so, kindly, take a look.

Anyway, thanks for the feedback; much appreciated.
v.Eremin
Veeam Software
 
Posts: 13296
Liked: 974 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 ohuetz » Sat Sep 28, 2013 12:15 pm

Hi,
in case of forward incremental backups: what happens if I choose only to copy fullbackups to tape and create that job on base of the b2d-job? Does the b2t-job "build" its own fullbackup out of the first full and the following incrementals?

Kind Regards
Oliver
ohuetz
Influencer
 
Posts: 14
Liked: never
Joined: Wed Mar 30, 2011 3:53 pm
Full Name: Oliver Huetz

Re: Backup to Tape only last backup with reversed incrementa

Veeam Logoby v.Eremin » Mon Sep 30, 2013 9:41 am

It won’t create anything, instead, it will copy to tape all existing .vbk files that can be found in the specified source. Thanks.
v.Eremin
Veeam Software
 
Posts: 13296
Liked: 974 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

[MERGED] : Backup to tape only latest .vbk ?

Veeam Logoby baatch » Tue Nov 05, 2013 3:37 pm

Hi

I just tried out the Veeam backup to tape function without the "process incremental backup option" and I thought it would just backup the latest .vbk file but it took all of the .vbk files instead. Is there a way to make it only backup the latest .vbk file?

Maybe I can solve it by changing the tape job to target from Job to a folder (tape) instead and then use a powershell script to make a symbolic link of the latest .vbk file to the folder?

But that seems a little unnecessary so was wondering if it was possible to do in the Veeam settings or not.

Hope you understand what I mean.
baatch
Enthusiast
 
Posts: 30
Liked: 4 times
Joined: Thu May 16, 2013 12:52 am
Full Name: Alexander

Re: Backup to Tape only last backup with reversed incrementa

Veeam Logoby v.Eremin » Tue Nov 05, 2013 4:12 pm

Hi, Alexander.

Currently, there is no “Copy only latest backup” option. So, one of the options will be to utilize hardlinks. More information regarding it can be found in the answers provided above; so, kindly take a look.

Thanks.
v.Eremin
Veeam Software
 
Posts: 13296
Liked: 974 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 baatch » Tue Nov 05, 2013 7:52 pm

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

I looked through the Powershell reference guide http://helpcenter.veeam.com/backup/70/powershell/index.html?cmdlets.html
but can't seem to find any cmdlets for starting a tape backup job?
baatch
Enthusiast
 
Posts: 30
Liked: 4 times
Joined: Thu May 16, 2013 12:52 am
Full Name: Alexander

Re: Backup to Tape only last backup with reversed incrementa

Veeam Logoby mhaynesVCI » Tue Nov 05, 2013 7:55 pm

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.

Is anyone able to comment on if 7.0 U2 will add tape job functionality?
mhaynesVCI
Novice
 
Posts: 4
Liked: never
Joined: Thu Oct 24, 2013 11:01 pm
Full Name: Matt Haynes

PreviousNext

Return to Tape



Who is online

Users browsing this forum: No registered users and 7 guests