summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbooo <borgers@mi.fu-berlin.de>2012-09-26 23:16:09 +0200
committerbooo <borgers@mi.fu-berlin.de>2012-09-26 23:16:09 +0200
commiteaaea985301427568dac310f721404327893133a (patch)
treecfc147c898e17bc2df932b2ff20ea85e78f1e83b
parentaeb145811a9765b31c7120fcdf8e3b982192bbe4 (diff)
downloadmirror-sync-eaaea985301427568dac310f721404327893133a.tar.gz
mirror-sync-eaaea985301427568dac310f721404327893133a.tar.bz2
mirror-sync-eaaea985301427568dac310f721404327893133a.zip
Mirror osm pbf files of the last three months as well.
-rwxr-xr-xbin/sync-osm-planet.sh7
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