Solved

ROBOCOPY Incremental Backup

Posted on 2006-11-07
9
13,613 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
 

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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Ever notice how you can't use a new drive in Windows without having Windows assigning a Disk Signature?  Ever have a signature collision problem (especially with Virtual Machines?)  This article is intended to help you understand what's going on and…
Lets start to have a small explanation what is VAAI(vStorage API for Array Integration ) and what are the benefits using it. VAAI is an API framework in VMware that enable some Storage tasks. It first presented in ESXi 4.1, but only after 5.x sup…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
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…

708 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now