Help with Robocopy of files


hi

have windows 2003 server have application logs daily files. folder c:\logs, , each day, folder date created and, within this, log file date too.

example:

c:\logs\20100812\log_20100812.txt

process continues. so, after week, have folders such as:

c:\logs\20100813
c:\logs\20100814
c:\logs\20100815

etc, each own log file within.

copy each day's log file server , going use robocopy via scheduled task. basically, each day, want upload previous day's log file. i'm not sure how upload previous day's log file only, , leave rest alone? know sort of switches use?

from testing, seems work:

robocopy \\server\c$\logs\\

hi,

thanks post.

based on following description file selection options, command quite makes sense.

/maxage:<n>
 specifies maximum file age (to exclude files older n days or date).
 
/minage:<n>
 specifies minimum file age (exclude files newer n days or date). 

thanks,

miles


please remember click “mark answer” on post helps you, , click “unmark answer” if marked post not answer question. can beneficial other community members reading thread.


Windows Server  >  Windows Server General Forum



Comments

Popular posts from this blog

some help on Event 540

WMI Repository 4GB limit - Win 2003 Ent Question

Event ID 1302 (error 1307) DFS replication service encountered an error while writing to the debug log file