OsmAnd/config/server_indexes_scripts/backup_and_create.sh
2011-08-29 22:23:52 +02:00

25 lines
474 B
Bash
Executable file

cd ~/gen_indexes
rm osmand.log
rm console
# update map creator
cd OsmAndMapCreator
yes | unzip /var/www-download/latest-night-build/OsmAndMapCreator-development.zip
cd ..
# remove backup and create new backup
rm -r backup
mkdir backup
# Not space enough - so that's commented right now
# mv indexes/uploaded/*.* backup
# remove all previous files
rm -r indexes
mkdir indexes
mkdir indexes/osm
mkdir indexes/uploaded
#run batch creator
./batch_indexing.sh &> console &