Discussions specific to tape backups
Post Reply
joergr
Expert
Posts: 383
Liked: 39 times
Joined: Jun 08, 2010 2:01 pm
Full Name: Joerg Riether
Contact:

Re: Backup to Tape only last backup with reversed incrementa

Post by joergr » 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 ;-)

v.Eremin
Veeam Software
Posts: 15140
Liked: 1141 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Backup to Tape only last backup with reversed incrementa

Post by v.Eremin » 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: 15140
Liked: 1141 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Backup to Tape only last backup with reversed incrementa

Post by v.Eremin » 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.

joergr
Expert
Posts: 383
Liked: 39 times
Joined: Jun 08, 2010 2:01 pm
Full Name: Joerg Riether
Contact:

Re: Backup to Tape only last backup with reversed incrementa

Post by joergr » 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.

v.Eremin
Veeam Software
Posts: 15140
Liked: 1141 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Backup to Tape only last backup with reversed incrementa

Post by v.Eremin » 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.

joergr
Expert
Posts: 383
Liked: 39 times
Joined: Jun 08, 2010 2:01 pm
Full Name: Joerg Riether
Contact:

Re: Backup to Tape only last backup with reversed incrementa

Post by joergr » Aug 19, 2013 11:04 am

yep, thats what i am doing right now. i will let you know the results.

joergr
Expert
Posts: 383
Liked: 39 times
Joined: Jun 08, 2010 2:01 pm
Full Name: Joerg Riether
Contact:

Re: Backup to Tape only last backup with reversed incrementa

Post by joergr » 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

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

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

Post by nterreault » 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

v.Eremin
Veeam Software
Posts: 15140
Liked: 1141 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Backup to Tape only last backup with reversed incrementa

Post by v.Eremin » 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.

ohuetz
Influencer
Posts: 16
Liked: never
Joined: Mar 30, 2011 3:53 pm
Contact:

Re: Backup to Tape only last backup with reversed incrementa

Post by ohuetz » 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

v.Eremin
Veeam Software
Posts: 15140
Liked: 1141 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Backup to Tape only last backup with reversed incrementa

Post by v.Eremin » 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.

baatch
Enthusiast
Posts: 30
Liked: 4 times
Joined: May 16, 2013 12:52 am
Full Name: Alexander
Contact:

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

Post by baatch » 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.

v.Eremin
Veeam Software
Posts: 15140
Liked: 1141 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Backup to Tape only last backup with reversed incrementa

Post by v.Eremin » 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.

baatch
Enthusiast
Posts: 30
Liked: 4 times
Joined: May 16, 2013 12:52 am
Full Name: Alexander
Contact:

Re: Backup to Tape only last backup with reversed incrementa

Post by baatch » 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/p ... dlets.html
but can't seem to find any cmdlets for starting a tape backup job?

mhaynesVCI
Novice
Posts: 4
Liked: never
Joined: Oct 24, 2013 11:01 pm
Full Name: Matt Haynes
Contact:

Re: Backup to Tape only last backup with reversed incrementa

Post by mhaynesVCI » 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?

Post Reply

Who is online

Users browsing this forum: Exabot [Bot] and 2 guests