5 cd "<%= @directory %>/planet"
7 OSCFILE="$(date +%Y%m%d-%H%M).osc"
9 # if there are old .osc files, they have to be taken into account
14 osmosis --rri --simc --write-xml-change "$OSCFILE"
16 osmosis --rxc "$OLDFILE" --rri --mc --simc --write-xml-change "$OSCFILE" && rm "$OLDFILE"
19 # osc file is ready, create new planet file
21 osmosis --read-xml-change "$OSCFILE" --read-bin planet.pbf --buffer bufferCapacity=12000 --apply-change --buffer bufferCapacity=12000 --write-pbf planet-new.pbf
25 mv planet-new.pbf planet.pbf