Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
841edb08
Commit
841edb08
authored
Oct 25, 2002
by
Mac Newbold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Gzip the update logs too.
parent
c60a91ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
db/backup.in
db/backup.in
+7
-0
No files found.
db/backup.in
View file @
841edb08
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment