diff options
-rwxr-xr-x | etc/rc.restore_full_backup | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/etc/rc.restore_full_backup b/etc/rc.restore_full_backup index 92c1394..7930c73 100755 --- a/etc/rc.restore_full_backup +++ b/etc/rc.restore_full_backup @@ -1,10 +1,11 @@ #!/bin/sh -if [ -f $1 ]; then +echo "Checking..." +if [ `tar tzPf $1 /etc/rc 2>/dev/null` ]; then echo "One moment, restoring ${1}..." tar xzPfU $1 -C / echo "Restore of $1 complete." -else - echo "Could not locate ${1}. Available backups:" +else + echo "Could not locate backup ${1}. Available backups:" ls -lah /root | grep backup | more fi |