Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ROBOCOPY Incremental Backup

Posted on 2006-11-07
9
Medium Priority
?
13,634 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
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 

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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
A look at what happened in the Verizon cloud breach.
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 show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

705 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