How to use Timestamp in robocopy ?

Microsoft Windows
Post Reply
User avatar
MigrationUser
Posts: 336
Joined: 2021-Jul-12, 1:37 pm
Contact:

How to use Timestamp in robocopy ?

Post by MigrationUser »

19 Jan 2011 08:05
Nishit

How to use timestamp in Robocopy?

We are using two back-ups on Server i.e Tape drive and other Robocopy.
We have unabled only Archieve data in Tape so that it copy only updated data only and the
we have set in robocopy for archieving the updated data but the problem we are facing while archieving data through robocoy is that it automatically Resets the Archieve Data through Tape. so as a result we are unable to Archieve data through Robocopy.
Can i know how to Archieve data through Timestemp as updated data gets Reset while using Robocopy?

----------------------------

#2 20 Jan 2011 07:41
Beddhist


Re: How to use Timestamp in robocopy ?

Hi Nishit,

Sorry, but I'm having trouble understanding your English.

You are backing up the same files with a tape drive program and with robocopy?

You want to backup only files with the archive flag set in the properties page?

Robocopy resets this archive flag, so the tape drive doesn't save anything?

Perhaps you can describe your setup in a little more detail.

Regards,
Peter.

----------------------------

#3 20 Jan 2011 07:49
Nishit


Sorry,for that

You are backing up the same files with a tape drive program and with robocopy?
Ans : Yes

You want to backup only files with the archive flag set in the properties page?
Ans : Yes

This is my Query (Robocopy resets this archive flag, so the tape drive doesn't save anything?)

----------------------------

#4 20 Jan 2011 12:50
Beddhist


Can you please post the command line for robocopy. I mean, please post the line from your batch file that calls robocopy.

----------------------------

#5 20 Jan 2011 13:01
Nishit

Code: Select all

pushd "d:"
robocopy D:\. "F:\J drive Backup\."  /A+:R /e /zb /R:2 /W:2 /m  /LOG:"C:\temp\USBbackup\logUSBBackup.txt" /v /TEE
popd
----------------------------

#6 21 Jan 2011 02:43
Beddhist


Hi,

Your problem is that you have specified /m. Use /a instead:
/A : Copy only files with the Archive attribute set.
/M : like /A, but remove Archive attribute from source files.
Read it here: https://ss64.com/nt/robocopy.html and in the manual.

Cheers,
Peter.
Post Reply