aboutsummaryrefslogtreecommitdiff
blob: 5d4a31ebed325dd28923db53c36c08c1e67cc07b (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=snapshots
${RSYNC} ${RSYNC_ARGS} masterreleases.gentoo.org::${module}/ ${FINALDIR}/${module}/