Backup logs / Robocopy Advice

Soldato
Joined
18 Oct 2002
Posts
18,296
Location
Brighton
I have a requirement from a client who needs to pull down 4 or 5 log files from client computers, then tag them in the filename with the machine name and preferably time/datestamp them too.

However i can't see this ability with robocopy, i'm also looking at xcopy but can't see that either.

Am i being blind or do i need to look at another source?
 
not to hard to implement mate

i'll do it tonight for you

for the log name..


+log "%computername% backup.txt"

some thing similar etc... search this forum for %currentdate%, i told someone about two days ago how to do that..

ie, comes out as 12-05-08 instead of 2/3/08
 
The file im trying to copy is a log file.

So it would have the name logfile.txt

I want to copy it across to the server so i can back it up but i want the filename to be changed to computername_time_date_logfile.txt

Can that be done?

Apprieciate the help bledd
icon14.gif
 
can it be copied from the client pc's to the server (ie, the copy command is started from the client)

bit easier to implement

-do you want the date & time that the logfile was created? or when it was copied..
 
Yea thats what i meant, the tasks can be scheduled on the server so i literally just need a batch file.

When it was copied and from what machine plz :)
 
Back
Top Bottom