summaryrefslogtreecommitdiff
path: root/bin/runmirrors
Commit message (Collapse)AuthorAge
* dont include the space into mkeyfileJoerg Jaspert2011-04-30
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* runmirrorsJoerg Jaspert2011-02-22
| | | | | | we all like some "" Signed-off-by: Joerg Jaspert <joerg@debian.org>
* runmirrorsJoerg Jaspert2011-02-22
| | | | | | oh you evil ``, die Signed-off-by: Joerg Jaspert <joerg@debian.org>
* space, lotsa spaceJoerg Jaspert2010-01-02
| | | | | | | | 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>
* complain if we run into timeoutJoerg Jaspert2010-01-01
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* If we are run from within ftpsync *and* have an mhop push to send on, we haveJoerg Jaspert2010-01-01
| | | | | | | 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>
* runmirrorsJoerg Jaspert2009-12-31
| | | | | | | | 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>
* ftpsync, runmirrorsJoerg Jaspert2009-12-31
| | | | | | | fixup calling of runmirrors log more what we are supposed to do Signed-off-by: Joerg Jaspert <joerg@debian.org>
* runmirrorsJoerg Jaspert2009-12-31
| | | | | | | default is mhop and use && when checking for things not enabled Signed-off-by: Joerg Jaspert <joerg@debian.org>
* runmirrorsJoerg Jaspert2009-12-31
| | | | | only add -conf to the name when it has value Signed-off-by: Joerg Jaspert <joerg@debian.org>
* runmirrorsJoerg Jaspert2009-12-30
| | | | | | update copyright Signed-off-by: Joerg Jaspert <joerg@debian.org>
* fix whitespace indenting to minimize diffUli Martens2009-12-29
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* quote some more argumentsUli Martens2009-12-29
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* set delay to 600 to be what we tell users in our config file would be defaultJoerg Jaspert2009-12-29
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* runmirrors getoptsJoerg Jaspert2009-12-28
| | | | | | merge \?) and :) into *) Signed-off-by: Joerg Jaspert <joerg@debian.org>
* runmirrorsJoerg Jaspert2009-12-28
| | | | | | two new options in the array Signed-off-by: Joerg Jaspert <joerg@debian.org>
* runmirrorsJoerg Jaspert2009-12-28
| | | | | | only look at mhop/&taged entries if doing mhop push Signed-off-by: Joerg Jaspert <joerg@debian.org>
* runmirrorsJoerg Jaspert2009-12-28
| | | | | | drop the -s Signed-off-by: Joerg Jaspert <joerg@debian.org>
* runmirrorsJoerg Jaspert2009-12-28
| | | | | | add two seperators between initial setup, config values and code. Signed-off-by: Joerg Jaspert <joerg@debian.org>
* runmirrors, getoptsJoerg Jaspert2009-12-28
| | | | | | | add new option parsing using getopts. keep the old way of just telling it the archive name working Signed-off-by: Joerg Jaspert <joerg@debian.org>
* Update the test about debian.org machine in remaining scriptsSimon Paillard2009-10-12
|
* runmirrors: disable StrictHostKeyChecking by defaultSimon Paillard2009-08-07
|
* runmirrorsJoerg Jaspert2009-07-18
| | | | | | | | | | change the runmirrors.mirror format. We keep compatibility with the old format, so if one uses them they should continue to do so. If one uses the new style, one is able to add all possible ssh options one wants. They just have to start with -. All that in there will be passed as-is to ssh. Signed-off-by: Joerg Jaspert <joerg@debian.org>
* multipleJoerg Jaspert2009-03-23
| | | | | | | | | adjust pushdelay to be longer by default better logging for pushes actually increase the timeout, so it should hit at some point, in staged pushes. log if a staged push failed to find all other locks it waits for. Signed-off-by: Joerg Jaspert <joerg@debian.org>
* runmirrorsJoerg Jaspert2008-11-19
| | | | | | define mailto use fullpath for ssh keyfile check Signed-off-by: Joerg Jaspert <joerg@debian.org>
* fixJoerg Jaspert2008-11-19
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* savelogJoerg Jaspert2008-11-19
| | | | | savelog on our own Signed-off-by: Joerg Jaspert <joerg@debian.org>
* runmirrorsJoerg Jaspert2008-11-17
| | | | | | document the config add default for keyfile Signed-off-by: Joerg Jaspert <joerg@debian.org>
* fix unbound variable problem in runmirrors(Re: New mirror scripts for Debian ↵ISHIKAWA Mutsumi2008-11-09
| | | | | | | | | | | | | | | | | | | | | | | | | | mirrors) >>>>> In <87d4h5g7tm.fsf@vorlon.ganneff.de> >>>>> Joerg Jaspert <joerg@debian.org> wrote: >> On 11563 March 1977, Panagiotis Christias wrote: >> >> > are you sure that the "set -u" should be used? >> >> Yep I am. >> >> > I get a lot of "VAR: unbound variable" messages and ftpsync aborts. >> >> Yes, about HOOK1 til HOOK5 and HUB. >> My mistake, I put a version up that didn't have them defined in the >> script itself, sorry. >> If you redownload the tarball (or git pull), you will get a fixed >> version. I found same kind of problems in runmirrors. (HOOK1,2,3 is not defined) Signed-off-by: ISHIKAWA Mutsumi <ishikawa@hanzubon.jp> Signed-off-by: Joerg Jaspert <joerg@debian.org>
* runmirrorsJoerg Jaspert2008-10-30
| | | | | make waiting delay in staged sync configurable Signed-off-by: Joerg Jaspert <joerg@debian.org>
* runmirrorsJoerg Jaspert2008-10-30
| | | | | pushlock sync should now work Signed-off-by: Joerg Jaspert <joerg@debian.org>
* runmirrorsJoerg Jaspert2008-10-30
| | | | | correctly set PUSHLOCKS Signed-off-by: Joerg Jaspert <joerg@debian.org>
* runmirrorsJoerg Jaspert2008-10-30
| | | | | add the archive name Signed-off-by: Joerg Jaspert <joerg@debian.org>
* if we want to use a default - it might be helpful to check for itJoerg Jaspert2008-10-22
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* Fix various little errorsJoerg Jaspert2008-10-21
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* ftpsync, runmirrorsJoerg Jaspert2008-10-21
| | | | | | small fixes and "" at some places Signed-off-by: Joerg Jaspert <joerg@debian.org>
* ftpsync, runmirrorsJoerg Jaspert2008-10-20
| | | | | | code cleanups Signed-off-by: Joerg Jaspert <joerg@debian.org>
* runmirrorsJoerg Jaspert2008-10-19
| | | | | | first code for a 2stage sync trigger. Signed-off-by: Joerg Jaspert <joerg@debian.org>
* runmirrorsJoerg Jaspert2008-10-04
| | | | | | use BASEDIR instead of $HOME, default for $HOME if unset. Signed-off-by: Joerg Jaspert <joerg@debian.org>
* runmirrorsJoerg Jaspert2008-10-03
| | | | | use "" around SSH_OPTS Signed-off-by: Joerg Jaspert <joerg@debian.org>
* runmirrorsJoerg Jaspert2008-10-03
| | | | | allow host wide extra ssh options to be set Signed-off-by: Joerg Jaspert <joerg@debian.org>
* Dont use exec in runmirrors.Joerg Jaspert2008-09-28
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* FixesJoerg Jaspert2008-09-28
| | | | | | | | - Use $LOGDIR where we want the dir and not the file - use $LOG where we want the file. - use proper "" around variables where they have to be Signed-off-by: Joerg Jaspert <joerg@debian.org>
* Hooks and DELAYJoerg Jaspert2008-09-28
| | | | | | | implement hooks run at various places. Allow a delay between two mirrors. Signed-off-by: Joerg Jaspert <joerg@debian.org>
* use a full name for the logfileJoerg Jaspert2008-09-27
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* Include a few suggestions from sgranJoerg Jaspert2008-09-27
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* runmirrorsJoerg Jaspert2008-09-27
add a script to push leaf mirrors Signed-off-by: Joerg Jaspert <joerg@debian.org>