Commit 841edb08 authored by Mac Newbold's avatar Mac Newbold

Gzip the update logs too.

parent c60a91ac
......@@ -32,6 +32,7 @@ my $TBOPS = "@TBOPSEMAIL@";
my $BACKUPDIR = "$TB/backup";
my $LOGDIR = "$TB/log/mysql";
my $BASE = "base";
my $UPD = "update";
my $BACK = "tbdb";
my $extension;
......@@ -102,9 +103,11 @@ print "Extension: $extension\n";
my $backname = "$BACK.$extension";
my $basename = "$BASE.$extension";
my $updname = "$UPD.$extension";
print "Backup file name: $backname\n";
print "Base file name: $basename\n";
print "Update file name: $updname\n";
#
# Move base log out of the way since flush-logs will reset it too.
......@@ -137,6 +140,10 @@ if (-e "$basename" && system("gzip -9 $basename")) {
fatal("gzip $basename failed!");
}
if (-e "$updname" && system("gzip -9 $updname")) {
fatal("gzip $updname failed!");
}
#SENDMAIL("stoller", "DB Backup Finished", "", undef, undef, ($logname));
unlink("$logname");
exit 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment