How do I back up folders containing symbolic links?

martinlest

New member
Power User
VIP
Local time
2:10 PM
Messages
661
A symbolic link can be backed up as path information to a target directory, or it can be backed up as a directory.
Apparently...

I want to back up a (parent) folder & sub-folders which all contain symbolic links. I don't want to back up the target folders to which the links point (several TBs of data!), I want to back up the path information. There are some two thousand symbolic links in all, which I had to create individually (several hours of work!), so I am keen to have a copy of the parent folder (which contains many sub-folders and other files, apart from the links) in case of disaster.

When I try to back up (I tend to use XXCopy or Robocopy), I either get an error for the symlinks (MKDIR failed) - the rest of the info backs up OK - or the programme starts to back up the target folders.

I've been Googling this for ages now with no luck so far, so I hope someone here will be able to step in!

Thanks.
 
Last edited:

My Computer My Computer

At a glance

Windows 7 Home Premium SP1 64-bitIntel Core i7-4790K CPU @ 4.5GHz16GB KINGSTON HYPER-X FURY DUAL-DDR3 1600MHz8GB NVIDIA GEFORCE GTX 1070
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Home Premium SP1 64-bit
CPU
Intel Core i7-4790K CPU @ 4.5GHz
Motherboard
Asus H97I-PLUS
Memory
16GB KINGSTON HYPER-X FURY DUAL-DDR3 1600MHz
Graphics Card(s)
8GB NVIDIA GEFORCE GTX 1070
Monitor(s) Displays
HannsG 28" & Dell 24"
Screen Resolution
1920x1200
Hard Drives
1 x 2TB Samsung Evo 860 SSD
2 x 500GB Samsung Evo 850 SSD
PSU
CORSAIR 650W CS SERIES
Case
Thermaltake Core V1 Mini ITX Cube
Cooling
NOCTUA NH-L12
Browser
Firefox
Other Info
Custom PC used for X-Plane 11
OK, odd thing. This is my basic XXCopy script:

XXCOPY "D:\Ortho4XP\Tiles" "N:\D-Ortho4XP Backup\Tiles"

When I run it once I get MKDIR failed for every folder. But if I run the same script again, once the first has finished, it then goes on to back up all the symlinks (the path data as I needed, not the target). Well, I can just run the script twice, but I wonder why it always fails on the first try?
 

My Computer My Computer

At a glance

Windows 7 Home Premium SP1 64-bitIntel Core i7-4790K CPU @ 4.5GHz16GB KINGSTON HYPER-X FURY DUAL-DDR3 1600MHz8GB NVIDIA GEFORCE GTX 1070
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Home Premium SP1 64-bit
CPU
Intel Core i7-4790K CPU @ 4.5GHz
Motherboard
Asus H97I-PLUS
Memory
16GB KINGSTON HYPER-X FURY DUAL-DDR3 1600MHz
Graphics Card(s)
8GB NVIDIA GEFORCE GTX 1070
Monitor(s) Displays
HannsG 28" & Dell 24"
Screen Resolution
1920x1200
Hard Drives
1 x 2TB Samsung Evo 860 SSD
2 x 500GB Samsung Evo 850 SSD
PSU
CORSAIR 650W CS SERIES
Case
Thermaltake Core V1 Mini ITX Cube
Cooling
NOCTUA NH-L12
Browser
Firefox
Other Info
Custom PC used for X-Plane 11
Back
Top