1 2 3 4 5 6 7 8 9 10 11
#!/bin/sh if [ -f $1 ]; then echo "One moment please while we restore $1" tar xzvPfU $1 -C / echo "Restore of $1 complete." else echo "Could not locate $1" ls "Available backups:" ls -lah /root | grep Backup fi