Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
03ca8e04
Commit
03ca8e04
authored
Sep 18, 2003
by
Leigh B. Stoller
Browse files
Nice the gzips down.
parent
4475f5ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
db/backup.in
View file @
03ca8e04
...
...
@@ -136,29 +136,28 @@ if (system("mysqldump --all --flush-logs --lock-tables $DBNAME > $backname")) {
#
# Compress the files.
#
if
(
system
("
gzip -9
$backname
"))
{
if
(
system
("
nice
gzip -9
$backname
"))
{
fatal
("
gzip
$backname
failed!
");
}
# Should do this too, but right now I do it by hand ...
if
(
0
)
{
system
("
find .
\
( -name 'tbdb.*.gz'
\
)
"
.
"
-mtime +45 -print -delete
");
system
("
find .
\
( -name 'tbdb.*.gz'
\
) -mtime +40 -print -delete
");
}
if
(
!
chdir
(
$LOGDIR
))
{
fatal
("
Could not chdir to
$LOGDIR
: $!
");
}
if
(
-
e
"
$basename
"
&&
system
("
gzip -9
$basename
"))
{
if
(
-
e
"
$basename
"
&&
system
("
nice
gzip -9
$basename
"))
{
fatal
("
gzip
$basename
failed!
");
}
if
(
-
e
"
$updname
"
&&
system
("
gzip -9
$updname
"))
{
if
(
-
e
"
$updname
"
&&
system
("
nice
gzip -9
$updname
"))
{
fatal
("
gzip
$updname
failed!
");
}
if
(
-
e
"
$slowname
"
&&
system
("
gzip -9
$slowname
"))
{
if
(
-
e
"
$slowname
"
&&
system
("
nice
gzip -9
$slowname
"))
{
fatal
("
gzip
$slowname
failed!
");
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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