From eaaea985301427568dac310f721404327893133a Mon Sep 17 00:00:00 2001 From: booo Date: Wed, 26 Sep 2012 23:16:09 +0200 Subject: Mirror osm pbf files of the last three months as well. --- bin/sync-osm-planet.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/sync-osm-planet.sh b/bin/sync-osm-planet.sh index 356af40..6a2cd1a 100755 --- a/bin/sync-osm-planet.sh +++ b/bin/sync-osm-planet.sh @@ -1,7 +1,7 @@ #!/bin/bash RSYNC="/usr/bin/rsync" -SRC="rsync://planet.openstreetmap.org/planet/planet/" +SRC="rsync://planet.openstreetmap.org/planet/" DST="/mirror/ftp/pub/openstreetmap/" RSYNC_OPTS=( "-Hax" @@ -24,8 +24,9 @@ TRACKER=( "udp://tracker.openbittorrent.com:80/announce" ) MKTORRENT_OPTS=( "-l 22" ) -${RSYNC} "${RSYNC_OPTS[@]}" ${SRC} ${DST} -${RSYNC} "${RSYNC_OPTS[@]}" "${SRC}/$(date +%Y)/" "${DST}/$(date +%Y)/" +${RSYNC} "${RSYNC_OPTS[@]}" "${SRC}planet/" "${DST}planet/" +${RSYNC} "${RSYNC_OPTS[@]}" "${SRC}planet/$(date +%Y)/" "${DST}planet/$(date +%Y)/" +${RSYNC} "${RSYNC_OPTS[@]}" "${SRC}pbf/" "${DST}pbf/" # create torrents #for file in ${DST}/*.bz2 -- cgit v1.2.3-1-g7c22