diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/sync-osm-planet.sh | 7 |
1 files 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 |