shell> cd $HOME
shell> tar --extract --file /mount/Backups/home-bkp-11082010.tar.gz --strip-components=1
Essentially, if my original backup had a file vlg/foobar.txt, the vlg/ part of the path would be stripped out.
This comes very handy if the backup file was created with something like:
shell> cd /home
shell> sudo tar xvfz home-bkp-11082010.tar.gz vlg
No comments:
Post a Comment