diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-11-20 22:24:35 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-11-20 22:24:35 +0000 |
commit | 7a7371d14e6b5ea941f4027c8a0c3fd33bb2863c (patch) | |
tree | c9f9e5833a1e52414a131d07c7903e0deb4906e2 /etc/phpshellsessions/cvssync | |
parent | 4d7ca5b6f961a285759c265be5510529e36e01cd (diff) | |
download | pfsense-7a7371d14e6b5ea941f4027c8a0c3fd33bb2863c.zip pfsense-7a7371d14e6b5ea941f4027c8a0c3fd33bb2863c.tar.gz |
Fix NOBACKUP
Diffstat (limited to 'etc/phpshellsessions/cvssync')
-rw-r--r-- | etc/phpshellsessions/cvssync | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/phpshellsessions/cvssync b/etc/phpshellsessions/cvssync index 8fa827b..6d9674c 100644 --- a/etc/phpshellsessions/cvssync +++ b/etc/phpshellsessions/cvssync @@ -82,6 +82,8 @@ create_supfile($branch); if($argv[4] == "NOBACKUP") $nobackup=true; +else + $nobackup = false; $CODIR = "/root/pfsense/$branch"; @@ -110,7 +112,7 @@ if($branch == "RESTORE" && $g['platform'] == "pfSense") { $nobackup = true; // do not backup embedded, livecd } -if($nobackup == true) { +if($nobackup == false) { echo "===> Backing up current pfSense information...\n"; echo "===> Please wait... "; exec("tar czPf /root/cvssync_backup.tgz --exclude /root --exclude /dev --exclude /var/db/racoon/racoon.sock --exclude /tmp --exclude /var/run --exclude /var/empty /"); |