summaryrefslogtreecommitdiffstats
path: root/etc/rc.restore_full_backup
blob: 7930c73795687e4a4ef50ce7c91223fa2d59f9f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

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 backup ${1}. Available backups:"
	ls -lah /root | grep backup | more
fi
OpenPOWER on IntegriCloud