summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-02-14 15:30:58 -0500
committerScott Ullrich <sullrich@pfsense.org>2010-02-14 15:30:58 -0500
commit16b96ea647132f8d8dfaaaa35f4b82457660c913 (patch)
treedacf1c131e4f7464db1f664459a45c84f7a9cb1f /etc
parent41bf8e8e9fec86518f904eb86d52e590f2828965 (diff)
downloadpfsense-16b96ea647132f8d8dfaaaa35f4b82457660c913.zip
pfsense-16b96ea647132f8d8dfaaaa35f4b82457660c913.tar.gz
Add var/empty to excludes list
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/config.lib.inc3
-rw-r--r--etc/rc.create_full_backup8
2 files changed, 9 insertions, 2 deletions
diff --git a/etc/inc/config.lib.inc b/etc/inc/config.lib.inc
index cf8127d..240a3a3 100644
--- a/etc/inc/config.lib.inc
+++ b/etc/inc/config.lib.inc
@@ -487,8 +487,9 @@ function write_config($desc="Unknown", $backup = true) {
unlock($lockkey);
unlink_if_exists("/usr/local/pkg/pf/carp_sync_client.php");
+
/* sync carp entries to other firewalls */
- carp_sync_client();
+ carp_sync_client();
if(is_dir("/usr/local/pkg/write_config")) {
/* process packager manager custom rules */
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 /"
OpenPOWER on IntegriCloud