summaryrefslogtreecommitdiffstats
path: root/etc/rc.restore_full_backup
blob: a5b890a6899a714762b607440e2cb7dfda26c743 (plain)
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
OpenPOWER on IntegriCloud