summaryrefslogtreecommitdiff
path: root/bin
Commit message (Collapse)AuthorAge
* ftpsync now closes stdin, not attaches to dev/nullJoerg Jaspert2010-10-10
| | | | | and pushes use ssh -f, not ssh ... & Signed-off-by: Joerg Jaspert <joerg@debian.org>
* away with backgroundingJoerg Jaspert2010-10-10
| | | | | 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>
* New versionJoerg Jaspert2010-10-10
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* bwlimitJoerg Jaspert2010-10-10
| | | | | specify RSYNC_BW to limit rsyncs bandwidth. value in kb. 0 or unset means unlimited Signed-off-by: Joerg Jaspert <joerg@debian.org>
* Defualt RSYNC_OPTIONS: preserve permissionsSimon Paillard2010-03-13
|
* pushpdoJoerg Jaspert2010-01-23
| | | | | actually honor SSH_OPTS variable 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>
* ftpsyncJoerg Jaspert2010-01-02
| | | | | Add some statistical foo, idea from Md Signed-off-by: Joerg Jaspert <joerg@debian.org>
* Always create .project/trace at the endJoerg Jaspert2010-01-02
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* ftpsync lockingJoerg Jaspert2010-01-01
| | | | | | | | | | 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>
* 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>
* log the runmirror argsJoerg Jaspert2010-01-01
| | | | 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>
* ftpsyncJoerg Jaspert2009-12-31
| | | | | only set -a argument for runmirrors when it actually has one 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>
* ftpsync tracefileJoerg Jaspert2009-12-30
| | | | | | only update the tracefile if it is a stage2 or all sync Signed-off-by: Joerg Jaspert <joerg@debian.org>
* Merge branch 'master' into mhopJoerg Jaspert2009-12-30
|\ | | | | | | | | | | * master: ftpsync ftpsync
| * ftpsyncJoerg Jaspert2009-12-30
| | | | | | | | | | | | | | 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>
| * ftpsyncJoerg Jaspert2009-12-30
| | | | | | | | | | | | add check if RSYNC_HOST is set 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>
* | fix whitespace to minimize diff between master and mhop branchesUli 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>
* | ftpsyncJoerg Jaspert2009-12-28
| | | | | | | | | | | | call runmirrors with the correct argument set 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>
* | ftpsync. call runmirrors with getopts argsJoerg Jaspert2009-12-28
| | | | | | | | | | | | | | | | 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>
* | ftpsyncJoerg Jaspert2009-12-28
|/ | | | | | add new option sync:mhop Signed-off-by: Joerg Jaspert <joerg@debian.org>
* ftpsyncJoerg Jaspert2009-12-27
| | | | | | 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>
* ftpsyncJoerg Jaspert2009-12-27
| | | | | | | | | 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>
* One more comment. comments good. :)Joerg Jaspert2009-12-26
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* Mention kfreebsd-{i386,amd64} and drop m68kJoerg Jaspert2009-12-25
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* websync: default $SITE_FILTER to keep local sponsor changes (images, html)Simon Paillard2009-11-15
|
* Filter protect sponsor-specific files instead of exluding them (whichSimon Paillard2009-11-04
| | | | delete them cause of --delete-excluded)
* Update the test about debian.org machine in remaining scriptsSimon Paillard2009-10-12
|
* release version 80286Joerg Jaspert2009-10-08
| | | | | document the new alternative runmirrors.mirror line format Signed-off-by: Joerg Jaspert <joerg@debian.org>
* Fix debian host test (false positive if fqdn=shortname)Simon Paillard2009-08-17
|
* 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>
* a --exclude really helpsJoerg Jaspert2009-06-22
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* Its site_exclude not source_excludeJoerg Jaspert2009-06-22
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* websyncJoerg Jaspert2009-06-22
| | | | | | initial version of a script to sync the debian website with. Signed-off-by: Joerg Jaspert <joerg@debian.org>