summaryrefslogtreecommitdiff
path: root/bin/ftpsync
Commit message (Collapse)AuthorAge
* 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>
* = is not the same as !=Joerg Jaspert2008-10-30
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* args. space. i hate you.Joerg Jaspert2008-10-22
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* ftpsyncJoerg Jaspert2008-10-22
| | | | | now, check if we know the configfile. Signed-off-by: Joerg Jaspert <joerg@debian.org>
* only trigger slave mirrors if we got pushed for stage2 or allJoerg Jaspert2008-10-22
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* what a difference a - can makeJoerg Jaspert2008-10-22
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* it seems i really like to forget the space in front of ];Joerg Jaspert2008-10-21
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* ftpsyncJoerg Jaspert2008-10-21
| | | | | [] do like their spaces Signed-off-by: Joerg Jaspert <joerg@debian.org>
* Fix various little errorsJoerg Jaspert2008-10-21
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* and again a fix for set -uJoerg Jaspert2008-10-21
| | | | Signed-off-by: Joerg Jaspert <joerg@debian.org>
* ftpsyncJoerg Jaspert2008-10-21
| | | | | set -u likes to have variables declared before we use em 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>
* Reuse some code, and change to case statement Signed-off-by: Stephen Gran ↵Stephen Gran2008-10-20
| | | | <steve@lobefin.net>
* ftpsync, runmirrorsJoerg Jaspert2008-10-20
| | | | | | code cleanups Signed-off-by: Joerg Jaspert <joerg@debian.org>
* ftpsyncJoerg Jaspert2008-10-20
| | | | | | some "" Signed-off-by: Joerg Jaspert <joerg@debian.org>
* ftpsyncJoerg Jaspert2008-10-19
| | | | | future proof bz2 Signed-off-by: Joerg Jaspert <joerg@debian.org>
* ftpsyncJoerg Jaspert2008-10-19
| | | | | set syncall to false if we only need stage1 or stage2 Signed-off-by: Joerg Jaspert <joerg@debian.org>
* ftpsyncJoerg Jaspert2008-10-19
| | | | | | | Add remote command options and callback. Also move functions to one single place. Signed-off-by: Joerg Jaspert <joerg@debian.org>
* ftpsyncJoerg Jaspert2008-10-05
| | | | | | Allow to set SOURCE_EXCLUDE in config. If it is set we wont touch it anymore, even if $ARCH_EXCLUDE still contains "source". Signed-off-by: Joerg Jaspert <joerg@debian.org>
* ftpsyncJoerg Jaspert2008-10-04
| | | | | | bash really likes the syntax to be correct Signed-off-by: Joerg Jaspert <joerg@debian.org>
* ftpsyncJoerg Jaspert2008-10-04
| | | | | the second stage should use >> for the logs. Signed-off-by: Joerg Jaspert <joerg@debian.org>
* ftpsyncJoerg Jaspert2008-10-04
| | | | | | also delete excluded files. and as we have rsync logs different now, do tell the rsync command in normal log Signed-off-by: Joerg Jaspert <joerg@debian.org>
* ftpsyncJoerg Jaspert2008-10-04
| | | | | and another option to only mail errors instead of always full logs Signed-off-by: Joerg Jaspert <joerg@debian.org>