| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
| |
Given the additional calls that append to the trace file, it could be
possible for an incomplete file to be downloaded, leading to unexpected
results.
Signed-off-by: Raphael Geissert <geissert@debian.org>
|
|
|
|
|
|
|
| |
Quoting the values would some times result in double quoting,
preventing the patterns from matching what they were intended to match.
Signed-off-by: Raphael Geissert <geissert@debian.org>
|
|
|
|
| |
Signed-off-by: Raphael Geissert <geissert@debian.org>
|
| |
|
|
|
|
| |
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|
|
|
| |
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|
|
|
| |
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|
|
|
|
|
| |
This reverts commit 2cb884ddc8eec3b620fd369c250958273feb0e01.
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|
|
|
|
|
| |
This reverts commit 3cb5f405310bac2c2f21fdfde8e9d22372b1e284.
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|
|
|
| |
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|\
| |
| |
| |
| |
| |
| | |
* raphael/filename-expansion:
Quote rsync patterns to avoid accidental expansion by the shell
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
| | |
|
| |
| |
| |
| |
| |
| | |
for the local admins to set extra rsync options, to be prepended to the
rsync call
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
| |
| |
| |
| |
| |
| |
| |
| | |
one can now select to have no tracefile, just to touch a file, terse or
full format.
For Debian mirrors it has to be full.
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|/
|
|
|
| |
thanks to Emmanuel Lacour for spotting this
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|
|
|
|
|
|
| |
- update version
write out list of mirrored architectures in tracefile
write upstream mirror into tracefile
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|
|
|
|
|
|
| |
All the files under dist/ are indexes and need to be updated as close
together as possible.
Of all the stuff in dist/, only installer-<arch> can and should be synced
in the first stage.
|
|
|
|
|
| |
Newer bash kicks out "unused var" warning otherwise, rightly so
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|
|
|
| |
<877h2psdxn.fsf@gkar.ganneff.de>
|
|
|
|
| |
TO and RSYNC_PATH for regular mirroradm setup
|
|
|
|
| |
http://lists.debian.org/debian-devel-announce/2011/08/msg00001.html
|
|
|
|
| |
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|
|
|
|
|
| |
increase version number
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|
|
|
|
|
|
| |
what, oh what, did i smoke when using ``?
use $() damnit.
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|
|
|
|
|
| |
path/filename without "" considered bad, mmmmmmmkay?
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|
|
|
|
|
| |
update rsync_options1 to also exclude the newish InRelease files in the first run
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|
|
|
|
|
|
|
|
| |
fix bug in rsync speed statistic output in a case where, for whatever reason,
the logfile has been rotated away before we try to grep around in it.
also update copyright years.
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|
|
|
|
| |
and pushes use ssh -f, not ssh ... &
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|
|
|
|
| |
pull out the code that would background ftpsync immediately when it got a normal push. that can be put in again when we have bash 4 everywhere.... for now it has more trouble than its worth fighting
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|
|
|
| |
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|
|
|
|
| |
specify RSYNC_BW to limit rsyncs bandwidth. value in kb. 0 or unset means unlimited
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
| |
|
|
|
|
|
|
|
|
| |
change all the indentation stuff to match one schema.
4 spaces indent, no tabs.
was pretty mixed up.
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|
|
|
|
| |
Add some statistical foo, idea from Md
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|
|
|
|
|
|
|
|
|
| |
have three ways of locking, depending on the bash version
old bash (older than 4 :) ) does not have BASHPID variable, nor a
good way to find the pid of a backgrounded subshell. so if we have
old bash, go the way of guessing if its still running, by comparing
the age of the LOCK file or by taking our proc/self target as pid
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|
|
|
| |
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|
|
|
|
|
|
| |
fixup calling of runmirrors
log more what we are supposed to do
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|
|
|
|
| |
only set -a argument for runmirrors when it actually has one
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|
|
|
|
|
| |
only update the tracefile if it is a stage2 or all sync
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|\
| |
| |
| |
| |
| | |
* master:
ftpsync
ftpsync
|
| |
| |
| |
| |
| |
| |
| | |
update the pid written in our lockfile after backgrounding mainroutine
Thanks to Kurt Roeckx for spotting this.
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
| |
| |
| |
| |
| |
| | |
add check if RSYNC_HOST is set
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
| |
| |
| |
| | |
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
| |
| |
| |
| |
| |
| | |
call runmirrors with the correct argument set
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
| |
| |
| |
| |
| |
| |
| |
| | |
call runmirrors with the getopts args it has now.
always present -a and -f.
only set -s and -k when appropriate.
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|/
|
|
|
|
| |
add new option sync:mhop
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|
|
|
|
|
| |
remove the Archive-Update-in-Progress file before pushing downstreams.
Otherwise its a race condition if they get this or not.
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|
|
|
|
|
|
|
|
| |
move the whole logic of the mirrorsync into a function named mainroutine.
Depending on how we are called run this mainroutine backgrounded. (Ie. all
"normal" mirror pushes now background immediately, only staged ones will
run foreground).
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|
|
|
| |
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|
|
|
| |
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|