Project

General

Profile

Download (353 Bytes) Statistics
| Branch: | Tag: | Revision:
1
#!/bin/sh
2

    
3
echo -n "Checking..."
4
if [ `tar tzPf $1 /etc/rc 2>/dev/null` ]; then
5
	echo " Backup file looks OK."
6
	echo "One moment, restoring ${1}..."
7
	tar xzPfU $1 -C / 2>/var/etc/restore_log.txt
8
	echo "Restore of $1 complete."
9
else
10
	echo " Error."
11
	echo "File not found or invalid backup file. Available backups:"
12
	ls -lah /root | grep backup | more
13
fi
(78-78/94)