E
E
Evgeny2015-01-23 10:33:02
linux
Evgeny, 2015-01-23 10:33:02

How to restore an incremental backup?

Good day!
There was a need to restore the saved backup.
Everything was backed up using backup-manager to an FTP server. Now there are files of the following structure:

ls
...
redbrush.ru-home-www-hotels-penza.ru-ru.20141129.tar.gz
redbrush.ru-home-www-hotels-penza.ru-ru.20141130.tar.gz  
redbrush.ru-home-www-hotels-penza.ru-ru.20141201.master.tar.gz  
redbrush.ru-home-www-hotels-penza.ru-ru.20141202.master.tar.gz      
redbrush.ru-home-www-hotels-penza.ru-ru.20141202.tar.gz 
...
redbrush.ru-home-www-hotels-penza.ru-ru.20141231.tar.gz 
redbrush.ru-home-www-hotels-penza.ru-ru.20150101.master.tar.gz
redbrush.ru-home-www-hotels-penza.ru-ru.20150102.master.tar.gz  
redbrush.ru-home-www-hotels-penza.ru-ru.20150102.tar.gz  
...
redbrush.ru-home-www-hotels-penza.ru-ru.20150116.tar.gz

I can't figure out how to unzip it all. Tried like this :
tar --extract --listed-incremental=/dev/null --file redbrush.ru-home-www-hotels-penza.ru-ru.20150102.master.tar.gz 
tar --extract --listed-incremental=/dev/null --file redbrush.ru-home-www-hotels-penza.ru-ru.20150116.tar.gz

But after unpacking the first one, the number of files is less than it was in the directory that was backed up. When unpacking the second:
tar: Невозможно переименовать `<имя_директории_в_архиве>` в `<другое_имя>`: Каталог не пуст
tar: Завершение работы с состоянием неисправности с из-за возникших ошибок

How to continue to live?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry, 2015-01-23
@zmeyjr

An incremental backup only copies files that have changed since the previous backup. A subsequent incremental backup only adds files that have changed since the previous one. On average, incremental backups take less time because fewer files are backed up. However, the data restore process takes longer because the data from the last full backup must be restored, plus the data from all subsequent incremental backups. In this case, unlike differential copying, changed or new files do not replace the old ones, but are added to the media independently.

V
Vlad Zhivotnev, 2015-01-23
@inkvizitor68sl

tar -xjGf arch1.tar.gz files/in/archive
tar -xjGf arch2.tar.gz files/in/archive
tar -xjGf arch3.tar.gz files/in/archive
Try something like this.

E
Evgeny, 2015-08-13
@jennik

For future generations: The problem was with tar. I copied the archives to another server (with a different version of tar) and everything unpacked perfectly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question