Comprehensive data protection for all workloads
Post Reply
CharadeUR
Influencer
Posts: 21
Liked: never
Joined: Mar 05, 2012 2:29 pm
Full Name: George Streeter
Contact:

Windows Softlinks and backup

Post by CharadeUR » Dec 05, 2014 4:54 pm

My observations are that if you have a softlink junction created with mklink in windows Veeam treats it like a normal directory and includes all the files under that softlinked folder. However that is not what I wish to do. I have these links pointed to other virtual drives and when I backup the guest vm I end up with the data being backed up twice. I also assume the restore process would not work too well because the files would attempt to restore to a drive that did not have enough space on it.

I have thought about running a script that kills the softlinks before backup then recreates them after the backup has finished but it is a 24 hour environment so that would not really be an option.

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

Re: Windows Softlinks and backup

Post by Gostev » Dec 06, 2014 11:09 pm

Hi, George. I don't really follow you here. Veeam is not a file level backup tool, we cannot backup some files twice. All we do is backup each virtual disk attached to a VM you have selected for backup... and, we don't really care what is stored inside of those virtual disks' file system... Thanks.

CharadeUR
Influencer
Posts: 21
Liked: never
Joined: Mar 05, 2012 2:29 pm
Full Name: George Streeter
Contact:

Re: Windows Softlinks and backup

Post by CharadeUR » Dec 08, 2014 1:01 pm

Hi Anton, Thanks for the reply. That is what I thought but when I do a file restore the softlink junctions appear as regular folders. Maybe this is just an appearance and a limitation of veeam to indicate the folder is a softlink?

veremin
Product Manager
Posts: 16691
Liked: 1393 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Windows Softlinks and backup

Post by veremin » Dec 08, 2014 9:45 pm

So, you're saying that if you try to perform the Windows FLR, those junctions will be shown as normal folders and the data present inside them will be restorable? Thanks.

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

Re: Windows Softlinks and backup

Post by Gostev » Dec 09, 2014 12:14 am

CharadeUR wrote:Maybe this is just an appearance and a limitation of veeam to indicate the folder is a softlink?
Yes, it's just how FLR engine treats them. Does not mean they are backed up twice or anything like that :)

yaroon
Novice
Posts: 5
Liked: never
Joined: Jun 16, 2011 8:08 am
Full Name: Jeroen Beekhuis
Contact:

Re: Windows Softlinks and backup

Post by yaroon » Feb 09, 2015 11:23 am

So when I restore a userprofile on a W2K8 server, in v8, it restores the junction points as empty folders. v7 even got stuck in a restore loop, recursively restoring the ...appdata/Application Data folder.
Microsoft themselves state that ' backup applications must be able to backup and restore junction points' (https://msdn.microsoft.com/en-us/librar ... s.85).aspx). WSB correctly restores junction points.
It is not a big day to day issue for us, but it it got us into some serious and unnecessary downtime when restoring some accidentally removed user profiles which made the c: drive run out of space.
Will this be fixed?

CharadeUR
Influencer
Posts: 21
Liked: never
Joined: Mar 05, 2012 2:29 pm
Full Name: George Streeter
Contact:

[MERGED] How to handle Junction aka soft links

Post by CharadeUR » Jul 27, 2017 4:02 pm

I have a client that has a unique situation. He has shared drives that are running out of space. This drive has a ClientShare folder. Below this are folders named by state.

We moved the Michigan folder to another drive and created a junction point also called a soft link named Michigan to point to the new location. This makes it so they don't have to retrain users on a new drive letter and also any spread sheets that point to the Michigan drive will not need to be adjusted.

What appears to happen is Veeam backs up this twice now. Once for the junction point and once on the new drive. I am confused as to what the best way to handle this backup is. It seems like if I tell it to skip the new drive then if the whole vm needs to be restored it will not work. I know of no way to exclude just the Michigan directory on the old drive.

So what are your thoughts?

DeadEyedJacks
Veeam ProPartner
Posts: 136
Liked: 24 times
Joined: Oct 12, 2015 2:55 pm
Full Name: DeadEyedJacks
Location: UK
Contact:

Re: How to handle Junction aka soft links

Post by DeadEyedJacks » Jul 28, 2017 2:13 pm


CharadeUR
Influencer
Posts: 21
Liked: never
Joined: Mar 05, 2012 2:29 pm
Full Name: George Streeter
Contact:

Re: Windows Softlinks and backup

Post by CharadeUR » Jul 28, 2017 5:51 pm

Sorry it must be I asked this before and forgot. I am sure it is treating the softlink as it would any folder and backing up the files twice. When I do a FLR I see all the files under what should be nothing more than a softlink. Can someone at veeam test this and tell me a definitive answer? My concern is if I have to restore the whole drive it will be larger than the physical space given.

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

Re: Windows Softlinks and backup

Post by foggy » Aug 03, 2017 3:24 pm

As mentioned above, actual objects are backed up once. You can see them in FLR browser though and on attempt to restore the link, its content will be restored.

Frieder_
Lurker
Posts: 2
Liked: never
Joined: Aug 16, 2019 12:10 pm
Contact:

Re: Windows Softlinks and backup

Post by Frieder_ » Aug 16, 2019 12:23 pm

Sorry for reactivating this old thread but I have another question about restoring symlinks:

Is it possible to restore the symlinks when using FLR? As I understood so far, the symlink is actually saved as a link. But when I restore it using FLR, the content will be restored as you already pointed out.

Is there any way to not restore the content but the link itself?

Dima P.
Product Manager
Posts: 10306
Liked: 836 times
Joined: Feb 04, 2013 2:07 pm
Full Name: Dmitry Popov
Location: Prague
Contact:

Re: Windows Softlinks and backup

Post by Dima P. » Aug 16, 2019 5:05 pm

Hello Frieder,
when I restore it using FLR, the content will be restored as you already pointed out
Can you please elaborate what type of of restore you are referring to? Restore with overwrite/keep option or Copy to different location? Thanks!

Frieder_
Lurker
Posts: 2
Liked: never
Joined: Aug 16, 2019 12:10 pm
Contact:

Re: Windows Softlinks and backup

Post by Frieder_ » Aug 20, 2019 2:16 pm

Hello Dima,
Can you please elaborate what type of of restore you are referring to? Restore with overwrite/keep option or Copy to different location? Thanks!
I tried it with keep, override and also copy to another location with more or less the same result.

Sorry for not mentioning this in my first post

Dima P.
Product Manager
Posts: 10306
Liked: 836 times
Joined: Feb 04, 2013 2:07 pm
Full Name: Dmitry Popov
Location: Prague
Contact:

Re: Windows Softlinks and backup

Post by Dima P. » Aug 20, 2019 7:15 pm

Thanks! Based on the review of existing functionality can confirm that:

- Restore option should restore symlink as symlink only when you are overwriting existing symlink
- Copy to option restores symlink as folder and it's all content

I'll discuss this behavior with RnD folks.

Post Reply

Who is online

Users browsing this forum: Baidu [Spider], mkretzer and 34 guests