Solved

ROBOCOPY Incremental Backup

Posted on 2006-11-07
9
13,623 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 

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 500 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

Independent Software Vendors: 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

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.
Microsoft will be releasing the Windows 10 Creators Update in just a matter of weeks. Are you prepared? Follow these steps to ensure everything goes smoothly and you don't lose valuable data on your PC.
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…

734 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