Or, a bit more efficiently, at the conclusion of the copy job, delete all files older than xx days.
There are many tools to handle this last part. *http://KB.UltraTech-llc.com/?File=DelOld.TXT <http://kb.ultratech-llc.com/?File=DelOld.TXT>* * * *ASB* *http://XeeMe.com/AndrewBaker* *Harnessing the Advantages of Technology for the SMB market… * On Wed, Jan 25, 2012 at 8:54 AM, Christopher Bodnar < [email protected]> wrote: > 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* <http://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* > > ~ 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>>
