summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-07-31 21:34:11 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-07-31 21:34:11 +0000
commit8388bbc67aab95ac2b7d0528f50db4694745f0e0 (patch)
treeeab0bdf1423e1e931af641d8a5cab85e472afdc4
parent36db7251eae248bceba8a18b4fe7458473703386 (diff)
downloadpfsense-8388bbc67aab95ac2b7d0528f50db4694745f0e0.zip
pfsense-8388bbc67aab95ac2b7d0528f50db4694745f0e0.tar.gz
Report backup size after completion.
-rw-r--r--etc/phpshellsessions/cvssync6
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/phpshellsessions/cvssync b/etc/phpshellsessions/cvssync
index 7748ff0..04a637b 100644
--- a/etc/phpshellsessions/cvssync
+++ b/etc/phpshellsessions/cvssync
@@ -94,9 +94,11 @@ if($branch == "RESTORE") {
exit();
}
-echo "===> Backing up current pfSense information... Please wait...\n";
+echo "===> Backing up current pfSense information... Please wait... ";
exec("tar czPf /root/cvssync_backup.tgz --exclude /root --exclude /dev --exclude /tmp --exclude /var/run /");
-exec("ls -lah /root/cvssync_backup.tgz");
+$size = filesize("/root/cvssync_backup.tgz");
+echo "{$size} bytes.\n";
+sleep(2);
echo "===> Checking out $branch\n";
exec("mkdir -p /home/pfsense/$branch");
OpenPOWER on IntegriCloud