The first stupid command:
mforde@tak:~> tar -xzf webbing.tar.gz
The second stupid command that didn't work:
mforde@tak:~> tar -tzf webbing.tar.gz | rm
The command I should have stopped with
mforde@tak:~> tar -tzf webbing.tar.gz | xargs rm
The stupid command that deleted public_html and all of its contents
mforde@tak:~> tar -tzf webbing.tar.gz | xargs rm -r
The commands that saved me:
mforde@tak:/mnt/s1> restore -i -h -v -f 2007_09_16-level0
mforde@tak:/mnt/s1> restore -i -h -v -f 2007_09_20-level4
mforde@tak:/mnt/s1> mkdir ~/public_html
mforde@tak:/mnt/s1> cd ./usr/home/mforde/public_html/
mforde@tak:/mnt/s1/usr/home/mforde/publi
c_html/> pax -rwvpe . /usr/home/mforde/public_html/
From the man page for restore:
-i This mode allows interactive restoration of files from a dump.
After reading in the directory information from the dump, restore
provides a shell like interface that allows the user to move
around the directory tree selecting files to be extracted. The
available commands are given below; for those commands that
require an argument, the default is the current directory.
In interactive mode, the commands I found very useful were ls, cd, add, extract.
ls and cd do exactly what they do in a regular shell. add added its given argument to the list of files to be restored and extract starts the restore of those files.