Answer the question
In order to leave comments, you need to log in
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
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
tar: Невозможно переименовать `<имя_директории_в_архиве>` в `<другое_имя>`: Каталог не пуст
tar: Завершение работы с состоянием неисправности с из-за возникших ошибок
Answer the question
In order to leave comments, you need to log in
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.
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question