diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2010-02-14 15:31:08 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2010-02-14 15:31:08 -0500 |
commit | 7d1ce25a14c9dc9f32e1dd479651f507c4b1fac9 (patch) | |
tree | 4d8e70c71dca15a0b94e42ab87070fa83ebc567e | |
parent | da4cd20b908eb7b60e5e58f72fb151fde2b45059 (diff) | |
download | pfsense-7d1ce25a14c9dc9f32e1dd479651f507c4b1fac9.zip pfsense-7d1ce25a14c9dc9f32e1dd479651f507c4b1fac9.tar.gz |
Add var/empty to excludes list
-rwxr-xr-x | etc/rc.create_full_backup | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/etc/rc.create_full_backup b/etc/rc.create_full_backup index e0648df..fc6de1b 100755 --- a/etc/rc.create_full_backup +++ b/etc/rc.create_full_backup @@ -2,7 +2,13 @@ FILENAME="pfSense-full-backup-`date "+%Y%m%d-%H%M"`.tgz" echo ">>> Creating full backup to $FILENAME" -tar czPf /root/$FILENAME --exclude dev/* --exclude tmp/* --exclude var/db --exclude var/run/* --exclude root/* / +tar czPf /root/$FILENAME --exclude dev/* \ + --exclude tmp/* \ + --exclude var/db \ + --exclude var/run/* \ + --exclude root/* \ + --exclude var/empty \ + / echo ">>> Backup completed. Note: this backup includes config.xml!" echo ">>> To restore this backup run this command:" echo " tar xzPf /root/$FILENAME -C /" |