summaryrefslogtreecommitdiff
path: root/bin/ftpsync
Commit message (Collapse)AuthorAge
* 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 to minimize diff between master and mhop branchesUli Martens2009-12-29
| | | | | | | | 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>
* | 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>
* 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
|
* errtrapJoerg Jaspert2009-06-22
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* also redirect stdinJoerg Jaspert2009-05-02
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* Version number 8086 and small README fixJoerg Jaspert2009-04-23
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* ftpsyncJoerg Jaspert2009-04-23
| | | | | fix a bash4 bug in the script Signed-off-by: Joerg Jaspert <joerg@debian.org>
* ftpsyncJoerg Jaspert2009-04-03
| | | | | | | also exclude the .changes files from proposed-updates directories when we exclude an arch. 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>
* (C) year (okok, fake commit for a test)Joerg Jaspert2009-01-15
| | | | 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>
* more lockfile funJoerg Jaspert2008-11-18
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* ftpsyncJoerg Jaspert2008-11-18
| | | | | kick lockfile, use shell only Signed-off-by: Joerg Jaspert <joerg@debian.org>
* missing spaceJoerg Jaspert2008-11-18
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* ftpsyncJoerg Jaspert2008-11-17
| | | | | lockfile in shell, for procmail haters Signed-off-by: Joerg Jaspert <joerg@debian.org>
* ftpsyncJoerg Jaspert2008-11-17
| | | | | new version Signed-off-by: Joerg Jaspert <joerg@debian.org>
* ftpsyncJoerg Jaspert2008-11-17
| | | | | | | handle "file missing"/"partial transfer" errors better, in case we already have a second push. We might just have tried to receive files that the second push removed. Signed-off-by: Joerg Jaspert <joerg@debian.org>
* ftpsync: rerun stage1 already if needed, not only after stage2Joerg Jaspert2008-11-15
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* "shorter" exclude (less space in logfiles)Joerg Jaspert2008-11-15
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* ftpsyncJoerg Jaspert2008-11-15
| | | | | optimize filter rules, so we no longer delete our trace files Signed-off-by: Joerg Jaspert <joerg@debian.org>
* Force to write trace file date with LANG=POSIXISHIKAWA Mutsumi2008-11-09
| | | | | | | | | | | | | | | | | | | | | | If locale environment variables (LANG, LC_ALL etc..) are set, new ftpsync script are write logs trace etc.. under this locales. But I think it is better force to write trace file (typicaly project/trace/HOSTNAME) with POSIX locale (or C) (not locale language environment). Mirror trace file will be used tracking mirror tree status. Trace file is mainly used to parse them by some programs, (mainly not for reading by a human) If date in the trace file is written with locale language environmet on each different host. It is too hard to perse them on each host (for example, trace file on ftp.jp.debian.org is written in Japanese, on ftp.kr.debian.org written in Korean, on ftp.de.debian.org written in German... It will be nightmare for tracing mirror tree) Signed-off-by: ISHIKAWA Mutsumi <ishikawa@hanzubon.jp> Signed-off-by: Joerg Jaspert <joerg@debian.org>
* FIX full logging variable typo (Re: New mirror scripts for Debian mirrors)ISHIKAWA Mutsumi2008-11-09
| | | | | | | | | | | | | | | | | | | | | | >>>>> In <87zlkai7gc.fsf@vorlon.ganneff.de> >>>>> Joerg Jaspert <joerg@ganneff.de> wrote: >> >> Hi >> >> Recently, we rewrote the Debian archive mirror script formerly known as >> anonftpsync. The new scriptset has many more features, and is the new >> de-facto standard for Debian mirrors. >> >> Please switch to it as soon as possible. >> >> The scriptset is available in two forms: >> - as a tarball from http://ftp-master.debian.org/ftpsync.tar.gz >> - as a git repository: >> git clone https://ftp-master.debian.org/git/archvsync.git Tiny patch, fix typo full logging setting variable (FULLLOGS) Signed-off-by: ISHIKAWA Mutsumi <ishikawa@hanzubon.jp>
* Add HHUB variable definitionJoerg Jaspert2008-11-08
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* Add HOOKX variable definitionsJoerg Jaspert2008-11-08
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* ftpsyncJoerg Jaspert2008-11-08
| | | | | make it possible to send full rsync logs too. default is off Signed-off-by: Joerg Jaspert <joerg@debian.org>
* Use hostname -s for the mailto comparisonJoerg Jaspert2008-11-08
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* Add hostname to trace fileJoerg Jaspert2008-11-06
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* spellingJoerg Jaspert2008-11-06
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* Better textJoerg Jaspert2008-11-06
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* Added version information to script and to trace fileJoerg Jaspert2008-11-06
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* rsync_proxyJoerg Jaspert2008-11-06
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* default to mail only errorsJoerg Jaspert2008-11-06
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* ftpsyncJoerg Jaspert2008-11-06
| | | | | use MIRRORNAME, not (bash set) HOSTNAME Signed-off-by: Joerg Jaspert <joerg@debian.org>
* ftpsyncJoerg Jaspert2008-11-03
| | | | | | modify the config sample to document *EVERY* possible option a user might want to modify Signed-off-by: Joerg Jaspert <joerg@debian.org>
* ftpsyncJoerg Jaspert2008-11-03
| | | | | | oh well, make it look nice and only tell where we are pushed from if it actually has a ssh connection Signed-off-by: Joerg Jaspert <joerg@debian.org>
* ftpsyncJoerg Jaspert2008-11-02
| | | | | log who pushed us Signed-off-by: Joerg Jaspert <joerg@debian.org>
* more "" and ``Joerg Jaspert2008-11-01
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* ftpsyncJoerg Jaspert2008-10-30
| | | | | right check for callback Signed-off-by: Joerg Jaspert <joerg@debian.org>
* runmirrorsJoerg Jaspert2008-10-30
| | | | | add the archive name Signed-off-by: Joerg Jaspert <joerg@debian.org>