Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to copy junction as-is instead of the folder it points to?

I copy set of folders from server 1 to server 2. Amongst files I also have junction: folder with set of config files: on server 1 this junction points to... let's say c:\Config (that contains config1.cfg, config2.cfg)

On server 2 I also have c:\Config with the same set of files, but of course they contains their own settings that I do not want to overwrite.

So what I want to do is to copy junction AS-IS. Instead, I get copies of config1.cfg and config2.cfg from server 1 :(

How to solve this problem??

p.s.1. it's long to explain, but I cannot avoid of using junctions here (it has something to do with limitation of where configuration must be placed (subfolder-'junction' points to 'outside' folder))

p.s.2. OS is Windows Server 2003

like image 998
Alexander Avatar asked Nov 12 '09 17:11

Alexander


People also ask

How can I tell if a folder is a junction?

In Windows Explorer, a junction point is a folder with a shortcut icon in the bottom left corner. The picture is of a backup folder next to an example folder. The example folder is the junction that points to the backup folder.

What is a junction folder?

A. Directory junctions allow you to join folders together so you can map a directory to any local target directory. Imagine you had three folders, c:\folder1, c:\folder2 and c:\documents.


1 Answers

FastCopy is a small program that does.

like image 181
Touth Avatar answered Oct 01 '22 03:10

Touth