0

I have an incremental backup in the format of server-name-backup_time.tar.gz and I'm trying to extract a home directory out of it with the command tar xvf server-name_**000*.tar.gz /home/user. However when I try to extract from this it will not do anything and just hang. I've read somewhere that I use the --incremental flag to do so but this is just says that the snar file doesn't exist.

How these incremental backups are created are with the following command:

sudo tar --create --verbose --listed-incremental /mnt/server-name.snar --gzip --file /mnt/server-name-backup_`date +%H%M%S`.tar.gz --ignore-failed-read --exclude=/usr/share/backups --exclude=/proc4 --exclude=/mnt --exclude=/sys --exclude=lost+found --exclude=/tmp --exclude=/proc /

How can I extract a certain directory out of this backup without extracting the entire thing and doing so incrementally?

  • I experienced the same problem, it seems hanging but if the tar.gz is big he have to navigate through all your tar to reach /home. Try to wait, or do some test with a smaller tar, to see if the command hangs even there. – Thomas8 Sep 8 '18 at 5:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.