JosephEstrada
asked on
Consolidate 2 folders
I have a shared folder with many subfolders with many files called DATA
I moved the DATA folder to a new server but inadvertently left access to the old DATA folder.
A few changes were made to a few files on the old DATA.
I'm wanting to consolidate the two so I don't miss any files.
I'm looking at Robomirror as a solution.
Does anyone have any suggestions?
Thanks very much!
I moved the DATA folder to a new server but inadvertently left access to the old DATA folder.
A few changes were made to a few files on the old DATA.
I'm wanting to consolidate the two so I don't miss any files.
I'm looking at Robomirror as a solution.
Does anyone have any suggestions?
Thanks very much!
ASKER
Thanks so much,
I have one question, what is the "d$" portion of the solution?
I appreciate your input.
I have one question, what is the "d$" portion of the solution?
I appreciate your input.
d$ = D:\ drive on the source server
ASKER
Oh ok, the DATA folder is on C: on the source server and D: on the target server
Change to: "c$" ?
Change to: "c$" ?
Yes.
robocopy.exe "\\old_fs\c$\path\DATA" "d:\path\DATA" /mir /e /b /copyall /r:6 /w:5 /MT:64 /tee /log:c:\robocopylog.log /v
ASKER
Thanks!
ASKER
One last question before I run, Will this leave any newer files untouched on the target server?
Robocopy will mirror the source to the target. So if there is difference between two files, robocopy will keep the file from the source.... unless you use the additional switch.
/xct Excludes changed files.
/xn Excludes newer files.
/xo Excludes older files.
/xx Excludes extra files and directories. Extra files are files that exist in the destination directory.
/xl Excludes "lonely" files and directories.
/is Includes the same files.
/it Includes "tweaked" files.
/max:<N> Specifies the maximum file size (to exclude files bigger than N bytes).
/min:<N> Specifies the minimum file size (to exclude files smaller than N bytes).
/maxage:<N> Specifies the maximum file age (to exclude files older than N days or date).
/minage:<N> Specifies the minimum file age (exclude files newer than N days or date).
/maxlad:<N> Specifies the maximum last access date (excludes files unused since N).
/minlad:<N> Specifies the minimum last access date (excludes files used since N) If N is less than 1900, N specifies the number of days. Otherwise, N specifies a date in the format YYYYMMDD.
https://social.technet.microsoft.com/wiki/contents/articles/1073.robocopy-and-a-few-examples.aspx#Robocopy_Copy_Options
/xct Excludes changed files.
/xn Excludes newer files.
/xo Excludes older files.
/xx Excludes extra files and directories. Extra files are files that exist in the destination directory.
/xl Excludes "lonely" files and directories.
/is Includes the same files.
/it Includes "tweaked" files.
/max:<N> Specifies the maximum file size (to exclude files bigger than N bytes).
/min:<N> Specifies the minimum file size (to exclude files smaller than N bytes).
/maxage:<N> Specifies the maximum file age (to exclude files older than N days or date).
/minage:<N> Specifies the minimum file age (exclude files newer than N days or date).
/maxlad:<N> Specifies the maximum last access date (excludes files unused since N).
/minlad:<N> Specifies the minimum last access date (excludes files used since N) If N is less than 1900, N specifies the number of days. Otherwise, N specifies a date in the format YYYYMMDD.
https://social.technet.microsoft.com/wiki/contents/articles/1073.robocopy-and-a-few-examples.aspx#Robocopy_Copy_Options
ASKER
Thanks very much, I should have been more explicit in my questioning.
I should have stated that I wanted to merge folders and preserve the newest files.
Does this look like it will do the trick?
robocopy.exe "\\old_fs\c$\path\DATA" "d:\path\DATA" /mir /e /b /xn /xct /copyall /r:6 /w:5 /MT:64 /tee /log:c:\robocopylog.log /v
I should have stated that I wanted to merge folders and preserve the newest files.
Does this look like it will do the trick?
robocopy.exe "\\old_fs\c$\path\DATA" "d:\path\DATA" /mir /e /b /xn /xct /copyall /r:6 /w:5 /MT:64 /tee /log:c:\robocopylog.log /v
You didn't say if users had access to the new share. If they do...
Don't use the /MIR switch
If users created files on new share that don't exist in old share, they will be erased.
Generally, always.. always test... Especially when you have lots of data to potentially overwrite
Test on a smaller branch of the tree. Don't do whole tree until confident
Don't use the /MIR switch
If users created files on new share that don't exist in old share, they will be erased.
Generally, always.. always test... Especially when you have lots of data to potentially overwrite
Test on a smaller branch of the tree. Don't do whole tree until confident
/xct Excludes changed files.
/xn Excludes newer files.
so you obviously don't want these switches
/xn Excludes newer files.
so you obviously don't want these switches
robocopy.exe "\\old_fs\c$\path\DATA" "d:\path\DATA" /e /b /copyall /r:6 /w:5 /MT:64 /tee /log:c:\robocopylog.log /v
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window