summaryrefslogtreecommitdiff
blob: c0e6d4a8fa87338320a68a7544fa68ae3b542dcd (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
# Copyright 2011-2015 Gentoo Authors; Distributed under the GPL v2

FINALDIR="/data/mirror"
PASSWD_FILE=""
RSYNC="/usr/bin/rsync"
RSYNC_ARGS="--recursive --links --perms --times --delete --hard-links --no-motd --timeout=300 ${PASSWD_FILE:+--password-file }${PASSWD_FILE}"
RSYNC_ARGS="${RSYNC_ARGS} --quiet"

module=releases
${RSYNC} ${RSYNC_ARGS} masterreleases.gentoo.org::${module}/ ${FINALDIR}/${module}/