NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
networkn
Apr 11, 2013Aspirant
Sync Backups <60 days old
Hi There! We backup 3 notebooks to a Ultra 2 Plus ReadyNAS, into 3 folders. We have 2 USB Hard Disks Rotated weekly offsite. I want to mirror the data on the NAS to the USB Hard Disks to a M...
StephenB
Apr 12, 2013Guru - Experienced User
I think the two options do work together, but robocopy will not delete files on the target if they are present in the source (even if the source file doesn't meet the criteria)
What I would do is create a batch file which first deletes files older than 60 days in the target directory, and then runs robocopy. You wouldn't need /mir in that case, though I think it does no harm. There's a batch file here that does shows you how to do the deletion step: http://stackoverflow.com/questions/9746 ... 65#9747065
I haven't tested it, but it looks correct.
Is that enough to get you started? I could probably put something together and post it, though it might take a day or two.
What I would do is create a batch file which first deletes files older than 60 days in the target directory, and then runs robocopy. You wouldn't need /mir in that case, though I think it does no harm. There's a batch file here that does shows you how to do the deletion step: http://stackoverflow.com/questions/9746 ... 65#9747065
I haven't tested it, but it looks correct.
Is that enough to get you started? I could probably put something together and post it, though it might take a day or two.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!