Link to home
Start Free TrialLog in
Avatar of Yashy
YashyFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Robocopy command along with security permissions?

hi guys

I've got a file server which I have set up and I want to transfer the files over from the old to the new using robocopy (seems like the fastest option I have at the moment right now!).

So I wanted to do the following:

1. Copy files from old to new server along with security permissions (if possible?).

2. Once the files have been copied over, for a mirroring to occur so that I can run a command and copy over any changes made on the old server and have them transferred to the new?

Would you be able to help me with the switches I'd need to use on both occasions?

Thanks a lot
Yashy
ASKER CERTIFIED SOLUTION
Avatar of JezNolan
JezNolan
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Yashy

ASKER

Awesome JazNolan, thank you.

So then, let's say I've copied files over. And I haven't deployed the new fileserver yet. People are now working on the old server still and making changes. If I wanted to get those changes across, do I just use the same command as above? What would be the difference between doing a copy and a mirror switch?

Thanks again
Use the same command. The /Mir command should be okay. I've never used it but if security settings may change and/or there is likely to be stuff deleted on the source it may be a better option. I get nervous if commands that can delete data. The logs are thorough and also tell you of extra files in place on destination that may not be on source, but /Mir may save you a bit of grief.

Quote:

/mir
Mirrors a directory tree (equivalent to /e plus /purge). For additional information, see Remarks.

/purge
Deletes destination files and directories that no longer exist in the source. For additional information, see Remarks.

Remark:

The /mir option is equivalent to the /e plus /purge options with one small difference in behavior:

With the /e plus /purge options, if the destination directory exists, the destination directory security settings are not overwritten.

With the /mir option, if the destination directory exists, the destination directory security settings are overwritten.
Hmm - think you need /copyall for security attributes actually.
SOLUTION
Avatar of Muhammad Farjad Arshad
Muhammad Farjad Arshad
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Testing with /mir and /copyall (/mir didn't copy security on its own). Will post back.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial