Restoring a incremental backup

Questions about Cobian Backup 11 (Gravity)
Post Reply
jimmm33
Posts: 1
Joined: 03 Mar 2022, 05:27

Restoring a incremental backup

Post by jimmm33 »

I am backing up a large directory of images with many subfolders. It is too large to do a full each day so I'm using a incremental Monday - Thursday and a full on Friday.

My question is how do I restore an incremental backup? For example, what is the entire directory gets wiped out and I need to do a restore on everything but the last full was 3 days ago? How do I integrate the most recent incremental data into the last full backup to update it to where it was before the data lose?
User avatar
cobian
Site Admin
Posts: 4492
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Restoring a incremental backup

Post by cobian »

See the history tab... Then copy the files back in the reverse order: First the oldest Full backup, then the oldest incremental, then the next older..until the newest. In that case it's easier with a differential backup because only 2 backups are needed to restore: The first FULL backup and the last Differential.
--
Luis Cobian
Cobian Backup's creator
joaquin73
Posts: 1
Joined: 20 Feb 2023, 16:15

Re: Restoring a incremental backup

Post by joaquin73 »

Dear Luis Cobian, many thanks for your awesome software.

The restoration of an incremental backup can be done automaticly with a simple MS-DOS command. The blog post "Restore Incremental Cobian Backups – Easily" by Mark Gorey gives full details in the URL:
https://www.urbansouldesign.co.uk/blog/ ... ps-easily/

If you have your backup of folder "Destination" stored in "F:\Archieve\" and you want to restore the files in "Y:\Destination\", then you first have to manually copy first the content of the full (initial) bakup from "F:\Archieve\Destination YYYY-MM-DD (full)" to "Y:\Destination\" (for instance, you can use drag and drop or the clipboard in the File Explorer)

The MS-DOS command that copies the modified files from the incremental directories is:
for /f "delims=" %a in ('dir /b/ad "F:\Archieve\Destination*Inc*" ') do xcopy "F:\Archieve\%a" "Y:\Destination\" /e /y

According to Mark Gorey
This copies the contents of any folders within F:\Archieve\ that starts with “Destination” and has “Inc” (for incremental folders) in it’s name. The asterisks are wildcard characters. The last 2 commands then forces xcopy to overwrite existing files and don’t display warning messages. xcopy will run through and do all this in the date order that the folders were created and provide a single, merged copy of all your backups. That way only newer files overwrite older files. Simple!
Note: For clarity, I have changed the folder names from the original blog post of Mark Gorey in this reply.

Many thanks to Mark Gorey for sharing your tricks and many thanks to Luis Cobian, the generous backup genius, for helping so many people save their data!
Last edited by joaquin73 on 20 Feb 2023, 17:12, edited 2 times in total.
User avatar
cobian
Site Admin
Posts: 4492
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Restoring a incremental backup

Post by cobian »

:OK Thanks
--
Luis Cobian
Cobian Backup's creator
Post Reply