Skip to content
GitLab
Menu
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
f6962901
Commit
f6962901
authored
May 25, 2016
by
Leigh B Stoller
Browse files
Use rsync when copying from workdir to infodir. Faster, when the workdir
gets really really big.
parent
931b2476
Changes
1
Hide whitespace changes
Inline
Side-by-side
db/Experiment.pm.in
View file @
f6962901
...
...
@@ -75,6 +75,7 @@ $TBREPORT = "$TB/bin/tbreport";
$
TBEND
=
"$TB/bin/tbend"
;
$
DU
=
"/usr/bin/du"
;
$
MD5
=
"/sbin/md5"
;
$
RSYNC
=
"/usr/local/bin/rsync"
;
#
To
avoid
writting
out
all
the
methods
.
AUTOLOAD
{
...
...
@@ -2917,7 +2918,7 @@ sub SaveLogFiles($)
if
(-
e
"$workdir/.rnd"
)
{
mysystem
(
"/bin/rm -f $workdir/.rnd"
);
}
mysystem
(
"
/bin/cp -Rpf
$workdir/ $infodir"
);
mysystem
(
"
$RSYNC -a
$workdir/ $infodir"
);
return
0
;
}
...
...
Write
Preview
Supports
Markdown
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