How about actually deleting them? Set this up as a batch job and have the 
first part of the job clear out the destination folder. Then just copy 
over the last X days.



Christopher Bodnar 
Technical Support III, Distributed Systems Service Delivery - Intel 
Services 
Tel 610-807-6459 
3900 Burgess Place, Bethlehem, PA 18017 
[email protected] 




The Guardian Life Insurance Company of America

www.guardianlife.com 







From:   Paul Hutchings <[email protected]>
To:     "NT System Admin Issues" <[email protected]>
Date:   01/25/2012 08:12 AM
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]
with the body: unsubscribe ntsysadmin


-----------------------------------------
This message, and any attachments to it, may contain information
that is privileged, confidential, and exempt from disclosure under
applicable law.  If the reader of this message is not the intended
recipient, you are notified that any use, dissemination,
distribution, copying, or communication of this message is strictly
prohibited.  If you have received this message in error, please
notify the sender immediately by return e-mail and delete the
message and any attachments.  Thank you.
~ 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

<<image/jpeg>>

Reply via email to