That will handle the copy part, but it doesn't seem to do a rolling purge of what's on the destination - neither to the /purge or /mir switches.
From: David Lum [mailto:[email protected]] Sent: 25 January 2012 13:43 To: NT System Admin Issues Subject: RE: Robocopy - rolling copy of the last X days? /MAXAGE: From: Paul Hutchings [mailto:[email protected]]<mailto:[mailto:[email protected]]> Sent: Wednesday, January 25, 2012 5:11 AM To: NT System Admin Issues Subject: Robocopy - rolling copy of the last X days? This is a little embarrassing as I'm sure I'm missing something obvious but... how can I use robocopy to copy the last X days of files from source to destination, so that the destination only ever contains the last X days too? I can tell it to ignore the old files in the source, what I simply cannot fathom is how to make it mirror this to the destination so I only ever have the last X days worth of files. Thanks, Paul ________________________________ MIRA Ltd Watling Street, Nuneaton, Warwickshire, CV10 0TU, England Registered in England and Wales No. 402570 VAT Registration GB 100 1464 84 The contents of this e-mail are confidential and are solely for the use of the intended recipient. If you receive this e-mail in error, please delete it and notify us either by e-mail, telephone or fax. You should not copy, forward or otherwise disclose the content of the e-mail as this is prohibited. ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to [email protected]<mailto:[email protected]> with the body: unsubscribe ntsysadmin ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to [email protected]<mailto:[email protected]> with the body: unsubscribe ntsysadmin ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to [email protected] with the body: unsubscribe ntsysadmin
