summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xetc/rc.restore_full_backup11
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/rc.restore_full_backup b/etc/rc.restore_full_backup
new file mode 100755
index 0000000..a5b890a
--- /dev/null
+++ b/etc/rc.restore_full_backup
@@ -0,0 +1,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