summaryrefslogtreecommitdiffstats
path: root/etc/rc.restore_full_backup
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-05-20 19:55:45 -0400
committerScott Ullrich <sullrich@pfsense.org>2010-05-20 19:55:45 -0400
commit7ec0aeb1531423c88406c5c7c87713316dbc6a04 (patch)
treefd2ff1c93db62c48a6b1880654f92918ce6c23d9 /etc/rc.restore_full_backup
parentc0ed686f9441b7019722954020057b23fe2f6603 (diff)
downloadpfsense-7ec0aeb1531423c88406c5c7c87713316dbc6a04.zip
pfsense-7ec0aeb1531423c88406c5c7c87713316dbc6a04.tar.gz
Adding restore script for rc.create_full_backup. First argument is the restore filename
Diffstat (limited to 'etc/rc.restore_full_backup')
-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