Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ROBOCOPY Incremental Backup

Posted on 2006-11-07
9
Medium Priority
?
13,641 Views
Last Modified: 2013-12-01
I've just downloaded the ROBOCOPY 3.1.1 all works very well. What i would like to do is copy files and folders from source to destination and have it set for incremental.

1) Copy source to destination
2) Keep the original file and make another copy of the modified file (two files in total in the destination drive)
3) And so forth...

Is this spossible? if so can i PLEASE have some help? this is bugging me so much!
0
Comment
Question by:akt-uk
  • 5
  • 4
9 Comments
 
LVL 5

Expert Comment

by:MrNetic
ID: 17898835
You could do something like the following.

robocopy /np /njh /LOG:"LogDestination.txt" /z  SOURCE Destination

Best Regards,

Paulo Condeça.
0
 

Author Comment

by:akt-uk
ID: 17899839
Paulo,

I tried this:

robocopy "C:\TEST BACKUP" /np /njh /LOG:"LogDestination.txt" /z "D:\BACKUP DATA"

But it generated the log file and doesn't create another backupfile.

What i would like to do when the robocopy execute is: keep the orginal file on the destination and create another backup file on destination if modified in source.

Is this possible in robocopy?

Jay
0
 
LVL 5

Expert Comment

by:MrNetic
ID: 17904688
Jay,

That is not the correct sintax, and what you want to do is clean possible with robocopy.

robocopy /np /njh /LOG:"c:\Log.txt" /z  C:\DataToBackup C:\BackupOfData.

Give some feedback if it works.

Best Regards,

Paulo Condeça.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:akt-uk
ID: 17905302
Paulo,

I run the command but it only copies the exact data that is in source, it's not producing another file on the destination when the source file is modified. The log files gets updated each time i run the script.

Where am i going wrong. Please confirm if my batch file is syntax is correct:

robocopy /np /njh /LOG:"c:\Log.txt" /z  C:\DataToBackup C:\BackupOfData

This is the only line exist in the .cmd file, do i need to type anything else?

Jay
0
 
LVL 5

Expert Comment

by:MrNetic
ID: 17905521
Jay,

Sorry, i was giving you one incorrect flag.

This will replace the destination FILE.

robocopy /LOG:"c:\Log.txt" /z /v /IS C:\DataToBackup C:\BackupOfData


If you want, another method, you will have to script it ( with vbs for example ).

Give some feedback if it works.

Best Regards,

Paulo Condeça.
0
 

Author Comment

by:akt-uk
ID: 17905927
Paulo,

Thanks for the response, but the command:

robocopy /LOG:"c:\Log.txt" /z /v /IS C:\DataToBackup C:\BackupOfData

does not work, i would apreciate your help.

Jay
0
 
LVL 5

Expert Comment

by:MrNetic
ID: 17906436

I found this, and it could help you :)

http://www.ss64.com/nt/robocopy.html

Best Regards,

Paulo Condeça.
0
 

Author Comment

by:akt-uk
ID: 17906495
Thanks Paulo,

but which command is for creating incremental & generate new file on the destination if the original source gets modified?

Jay
0
 
LVL 5

Accepted Solution

by:
MrNetic earned 1500 total points
ID: 17906737
Jay,

I gave you all the sources, you should rtm.

I can give you the path, but you must walk by your own legs.

Best Regards,

Paulo Condeça.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
The question appears often enough, how do I transfer my data from my old server to the new server while preserving file shares, share permissions, and NTFS permisions.  Here are my tips for handling such a transfer.
This video teaches viewers how to encrypt an external drive that requires a password to read and edit the drive. All tasks are done in Disk Utility. Plug in the external drive you wish to encrypt: Make sure all previous data on the drive has been …
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question