| Commit message (Collapse) | Author | Age |
|
|
|
|
| |
Instead of not updating the trace file, skip the second stage so that
the mirror is kept in a consistent state.
|
|
|
|
|
|
| |
It is otherwise possible for a mirror to be synced while the upstream
is not yet done syncing and for the site trace to be updated
regardless.
|
|
|
|
| |
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|
|
|
|
|
|
|
|
|
| |
This reverts commit f27c79aa0d054e6841a229dcf0e32be58c76f72a.
Reason: While I envisioned hooks to be scripts running whatever it needs
then, it can be perfectly valid to just have a single command here, with
arguments. and then one doesnt want ""
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|
|
|
|
|
| |
also want a ""
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|
|
|
|
|
| |
we all like some ""
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|
|
|
|
|
| |
oh you evil ``, die
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|
|
|
|
|
| |
adjust sample rsync_options1
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>
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
| |
actually honor SSH_OPTS variable
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>
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
to wait until the push is gone through and they all returned, or we will exit
much too early.
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|
|
|
| |
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|
|
|
| |
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* mhop: (28 commits)
runmirrors
ftpsync, runmirrors
runmirrors
ftpsync
runmirrors
common
runmirrors
ftpsync tracefile
fix whitespace indenting to minimize diff
quote some more arguments
fix whitespace to minimize diff between master and mhop branches
readme
More comments in the mirror sample
common
set delay to 600 to be what we tell users in our config file would be default
runmirrors getopts
common
common
runmirrors
runmirrors
...
|
| |
| |
| |
| |
| |
| |
| |
| | |
only skip non-mhop/staged entries if we are called from within ftpsync.
When we are called outside, ie. starting the mirror run, we do have
to push everything and can not skip.
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>
|
| |
| |
| |
| |
| |
| |
| | |
default is mhop and use && when checking for things
not enabled
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 add -conf to the name when it has value
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
| |
| |
| |
| |
| |
| | |
treat mhop mirror entries same as staged in this elif
Signed-off-by: Joerg Jaspert <joerg@debian.org>
|
| |
| |
| |
| |
| |
| | |
update copyright
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>
|