diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2010-02-14 15:30:58 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2010-02-14 15:30:58 -0500 |
commit | 16b96ea647132f8d8dfaaaa35f4b82457660c913 (patch) | |
tree | dacf1c131e4f7464db1f664459a45c84f7a9cb1f /etc/rc.create_full_backup | |
parent | 41bf8e8e9fec86518f904eb86d52e590f2828965 (diff) | |
download | pfsense-16b96ea647132f8d8dfaaaa35f4b82457660c913.zip pfsense-16b96ea647132f8d8dfaaaa35f4b82457660c913.tar.gz |
Add var/empty to excludes list
Diffstat (limited to 'etc/rc.create_full_backup')
-rw-r--r-- | 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 100644 --- 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 /" |