开发者

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

开发者 https://www.devze.com 2022-12-11 11:26 出处:网络
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 (tha

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


FastCopy is a small program that does.


Copying junctions don't make any sense from drive to drive - a junction points to a specific node on disk. What you really want is a Symlink, which points to a specific path in the filesystem, but unfortunately this doesn't exist on Server 2003. You're out of luck here, you'll have to just fix this up in a post-copy script.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号