Link to home
Create AccountLog in
Avatar of chesterzoo
chesterzooFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Need to merge 2 File Servers into 1...

Right...

well one of our file servers corrupted, so we thought we fixed it and everbody kept using it.

Then, people kept on finding corrupted documents and PPT's on there files, so we were manually restoring from a different server which was mirrored to the original...

So we have Server1 which is currently in use but all files modified before July 1st need replacing with Server2's version...

is robocopy the best way to go? and how do i get a list before i actually do it?

Cheers
Avatar of Shift-3
Shift-3
Flag of United States of America image

Yes, robocopy is a great way to move large numbers of files.  Its default behavior is to overwrite older files with newer ones.  Run it with the /L switch to get a list without actually copying anything.
Avatar of chesterzoo

ASKER

ok so how do i get it to only overwrite ones which are over 30 days old?

/MAXAGE:30 ?
I'm not sure I understand your intent.  The /MINAGE:30 switch would exclude all files in the source directory which were modified in the last 30 days.  The /XN switch excludes files in the source which have been modified more recently than ones in the destination.
the problem is both file servers have identical files but one set does not work and the other set does.

the /MaxAge switch should allow me to exclude any file that is older than 30 days. Ie. the corruption happened 30 days ago and i want to make sure the files that have been created since don't get lost when i revert it back to the backed up version.

So it would only copy files that are newer than when the corruption happened...

So hopefully then i should be able to restore the backup and then copy in the new files that have been edited.

so to summarise...

1. i should robocopy the corrupted file server to get the files that have been modified or created within the last 30 days.
2. restore the backup from 30 days ago to overwrite everything.
3. robocopy in the files from step 1

how does this sound??

Cheers
ASKER CERTIFIED SOLUTION
Avatar of Shift-3
Shift-3
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
well thanks for that, i will give it a try and let you know!

Cheers