diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2010-05-20 19:55:45 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2010-05-20 19:55:45 -0400 |
commit | 7ec0aeb1531423c88406c5c7c87713316dbc6a04 (patch) | |
tree | fd2ff1c93db62c48a6b1880654f92918ce6c23d9 | |
parent | c0ed686f9441b7019722954020057b23fe2f6603 (diff) | |
download | pfsense-7ec0aeb1531423c88406c5c7c87713316dbc6a04.zip pfsense-7ec0aeb1531423c88406c5c7c87713316dbc6a04.tar.gz |
Adding restore script for rc.create_full_backup. First argument is the restore filename
-rwxr-xr-x | etc/rc.restore_full_backup | 11 |
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 |