Linux – Untar error: tar: Error exit delayed from previous errors

linuxtar

i'm trying to untar this file to the public_html folder
the file is currently in /home/user/ … the public_html is backed up inside so it should just dump the files into the public_html but nothing is happening

tar -xvzf backup.tar.gz /home/user/

tar: /user: Not found in archive
tar: Error exit delayed from previous errors

Best Answer

cd /home/user; tar xvfz backup.tar.gz

You are asking tar to extract '/home/user' from the archive. Better to un-tars to the local dir.

Related Question