Comprehensive data protection for all workloads
Locked
farid.shahab
Novice
Posts: 3
Liked: never
Joined: Dec 31, 2013 5:33 am
Full Name: Farid Shahab
Contact:

Re: v7 Backup Copy Job removable media (rotated drives)

Post by farid.shahab » Dec 31, 2013 7:18 am

v.Eremin wrote:Kindly take a look at the answer in this existing discussion. Thanks.
Hi Eremin,

Can you share this topic with me please? I am having the same problem. the RDX removable disk is not being recognized at the repository selection. thanks. Farid

farid.shahab
Novice
Posts: 3
Liked: never
Joined: Dec 31, 2013 5:33 am
Full Name: Farid Shahab
Contact:

Re: v7 Backup Copy Job removable media (rotated drives)

Post by farid.shahab » Jan 01, 2014 5:55 am

Andreas Neufert wrote:Use Windows Disk Manager to create a NTFS Partition and select a drive letter for this. Windows will remember the drive letter.
I think it is not about the drive letter, it is because Veeam doesn't recognise removable device as a repository backup, veeam only accept local disks for its repository. please have a slution for this. Farid

Gostev
SVP, Product Management
Posts: 23860
Liked: 3209 times
Joined: Jan 01, 2006 1:01 am
Location: Baar, Switzerland
Contact:

Re: v7 Backup Copy Job removable media (rotated drives)

Post by Gostev » Jan 01, 2014 10:05 am

farid.shahab wrote:Veeam doesn't recognise removable device as a repository backup, veeam only accept local disks for its repository
That is certainly not true. Plugged-in removable drive is no different from local disk.

bunger
Expert
Posts: 117
Liked: 8 times
Joined: Jun 23, 2010 5:39 pm
Full Name: Bill Unger
Contact:

Re: v7 Backup Copy Job removable media (rotated drives)

Post by bunger » Jan 06, 2014 8:30 pm

Gostev - I have an open case with support ( currently escalated to Senior Support ) as the regkey and hotfix don't seem to fix the issue for our environment.

While I am awaiting a fix or "next steps" from them, is there a workaround I could use? Would the scripts previously mentioned do the trick?

foggy
Veeam Software
Posts: 17599
Liked: 1467 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: v7 Backup Copy Job removable media (rotated drives)

Post by foggy » Jan 06, 2014 8:38 pm

Bill, what is the actual scenario that doesn't work?

bunger
Expert
Posts: 117
Liked: 8 times
Joined: Jun 23, 2010 5:39 pm
Full Name: Bill Unger
Contact:

Re: v7 Backup Copy Job removable media (rotated drives)

Post by bunger » Jan 06, 2014 8:44 pm

foggy wrote:Bill, what is the actual scenario that doesn't work?
I have a backup job that backs up VMs to an internal hard drive. I then has an associated Backup Copy job that should copy the latest backup to a swappable external hard drive. The Backup Copy job is failing with the following error:


1/6/2014 3:43:29 PM :: Error: The system cannot find the path specified.

CreateDirectory(A:\Copy Backup to Rotating) function call failed.
Cannot create folder. Folder path: [A:\Copy Backup to Rotating].
--tr:FC: Failed to create directory. Directory path: [A:\Copy Backup to Rotating].
--tr:Failed to call DoRpc. CmdName: [FcCreateDir] inParam: [<InputArguments><DirName value="A:\Copy Backup to Rotating" /></InputArguments>].

We are running v7 R2, have the registry key defined, and the hot fix installed. Still no go...

v.Eremin
Product Manager
Posts: 15967
Liked: 1284 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: v7 Backup Copy Job removable media (rotated drives)

Post by v.Eremin » Jan 07, 2014 7:38 am

Hi, Bill, I'm wondering whether these scripts can solve your issues with using backup copy job in conjunction with rotated drives. Thanks.

bunger
Expert
Posts: 117
Liked: 8 times
Joined: Jun 23, 2010 5:39 pm
Full Name: Bill Unger
Contact:

Re: v7 Backup Copy Job removable media (rotated drives)

Post by bunger » Jan 08, 2014 2:20 pm

I just heard back from Senior Support and don't feel like I am getting very far. Here is what they have to say:

We have additionally discussed this with R&D team.
As it turned out ForceCreateMissingVBK was initially designed to be used for regular backup jobs that use reversed incremental method.
For backup copy it would also work if there is only single .vbk and no .vib files. If there was a backup chain (.VBK + .VIBs) it won't work as simply ignoring previous chain would possibly cause configuration conflicts in future.


And then...

As far as I understand case summary you need to use backup copy job to copy backups to a repository with rotated drives, right ?
By default after changing the medias copy job will stop working as it will not be able to find files produced during previous sessions.
To get it to work again you need to clean up configuration records.
In order to do so, please open Veeam GUI -> Backups, then right click on one produced by corresponding copy job and click "Remove from backups" (please see attached screenshot).


Neither of these helps me get the backup copy job working to removable media. The point I am stuck on is that I thought the registry key and hotfix addressed the issue, but it didn't for us. And based on the responses above, it doesn't sound there IS a fix?!

v.Eremin
Product Manager
Posts: 15967
Liked: 1284 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: v7 Backup Copy Job removable media (rotated drives)

Post by v.Eremin » Jan 08, 2014 2:53 pm

If applicable, you can use the scripts mentioned in my previous message. They should automate the cleaning procedure for you ( backup-> delete) for you, making backup copy job work without issues with removable media.

Thanks.

Gostev
SVP, Product Management
Posts: 23860
Liked: 3209 times
Joined: Jan 01, 2006 1:01 am
Location: Baar, Switzerland
Contact:

Re: v7 Backup Copy Job removable media (rotated drives)

Post by Gostev » Jan 08, 2014 3:05 pm 2 people like this post

Hi all, as promised in the weekly forum digest couple of weeks ago, here is the beta code for full support of all use cases around rotated drives. We are looking to include this code in the next product patch, but would like to get your feedback first, to make sure we have addressed all your requirements. The goal here was to remove the need for ANY scripting on your side completely. I would hate to find out we've missed something after the patch is released, so I appreciate your help with this.

This code adds rotated drives support for all backup modes of primary backup jobs, as well as for Backup Copy jobs. It also adds optional backup repository auto cleanup functionality. This code must be installed on B&R 7.0 R2.

Registry values controlling the functionality:

ForceCreateMissingVBK (DWORD)
Set to 1 to enable support for rotated drives. With this functionality enabled, if any backup file from the latest full backup chain is missing (such as when the existing hard drive is replaced by another one), jobs will start the new backup chain and create the new full backup (instead of failing out).

ForceDeleteBackupFiles (DWORD)
Enables automatic cleanup of the backup repository from ALL existing files if any backup file from the latest full backup chain is missing (such as when the existing hard drive is replaced by the hard drive brought back from offsite location, and containing some older backup files).
Set to 3 to make the job delete the entire contents of the backup job’s folder only.
Set to 5 to make the job delete the entire contents of the root backup repository folder, thus deleting any files belonging to other jobs along. Note that if backup repository is pointed at the volume's root folder, the entire volume's contents will be erased.

Download here:
ftp://ftp00445433:ctDjaMKR@supportftp.veeam.com/

bunger
Expert
Posts: 117
Liked: 8 times
Joined: Jun 23, 2010 5:39 pm
Full Name: Bill Unger
Contact:

Re: v7 Backup Copy Job removable media (rotated drives)

Post by bunger » Jan 08, 2014 4:12 pm

I have been working on the powershell script this morning and it doesn't seem to work.

My backup architecture is as follows:

Backup Job called "Nightly Backup" backs up VMs to internal drive and this backup location is d:\NightlyBackup

Backup Copy Job ( Attached to "Nightly Backup" ) should copy recent backup to rotating external drive. This rotating location is A:\

When running and stepping through the Powershell script, it is checking the location d:\NightlyBackup for the existence of a VBK. If it can't find a VBK, then it stops the scheduler, deletes the backup from the GUI, deletes the files from media, and then restarts the scheduler.

The problems that I see with the script is that it references the main backup job and not the backup copy job.
- It looks to d:\NightlyBackup for the existence of a VBK ( which always exists as it is not rotating )
- it runs $backup.Delete(), which is initialized to the backup job and not the backup copy job
- it deletes the backup files from the d:\NightlyBackup location and not A:\

What am I missing here?

bunger
Expert
Posts: 117
Liked: 8 times
Joined: Jun 23, 2010 5:39 pm
Full Name: Bill Unger
Contact:

Re: v7 Backup Copy Job removable media (rotated drives)

Post by bunger » Jan 08, 2014 4:30 pm

Oh man. Is it Friday yet?

I just realized I was entering the main backup job name in the script instead of the copy job. My bad. <sigh> Ignore my previous post.

tsightler
VP, Product Management
Posts: 5281
Liked: 2140 times
Joined: Jun 05, 2009 12:57 pm
Full Name: Tom Sightler
Contact:

Re: v7 Backup Copy Job removable media (rotated drives)

Post by tsightler » Jan 08, 2014 5:57 pm

You may also be interested in Anton's post above, from earlier today just before your post, where he's asking for testers of the beta patch that allows all of this to "just work" by setting a few registry keys, no scripting required.

bunger
Expert
Posts: 117
Liked: 8 times
Joined: Jun 23, 2010 5:39 pm
Full Name: Bill Unger
Contact:

Re: v7 Backup Copy Job removable media (rotated drives)

Post by bunger » Jan 08, 2014 9:47 pm

I just installed the patch for clients - we'll see how it plays...

STORM121
Novice
Posts: 7
Liked: never
Joined: Dec 26, 2011 3:40 am
Full Name: David L Litz
Contact:

Re: v7 Backup Copy Job removable media (rotated drives)

Post by STORM121 » Jan 13, 2014 12:47 am

Do we replace the current dll files with the new ones and do we have to create these new registry entries?

Locked

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 15 guests