forked from osmandapp/OsmAnd-misc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
copy_downloads_to_sync.sh
executable file
·33 lines (23 loc) · 1.11 KB
/
copy_downloads_to_sync.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
DIRECTORY=$(cd `dirname $0` && pwd)
INDEXES_DIR=/var/www-download/indexes/
SYNC_DIR=/var/www-download/sync/
rsync --recursive -v -L --times $SYNC_DIR/indexes/ $SYNC_DIR/publish/
# R2NGOYG7TSJL7BT5QB5QFULORCH7TQ43X
mkdir -p $SYNC_DIR/Russia
rsync --progress --delete-after --dirs --times $INDEXES_DIR/Russia_* $SYNC_DIR/Russia/
#RYL64R2O3EKFBXKX3Z4C6NRT374WLMJD7
mkdir -p $SYNC_DIR/France
rsync --progress --delete-after --dirs --times $INDEXES_DIR/France* $SYNC_DIR/France/
#RW2VAHTU62NV5W5CLC5YS6XGXWHSEKTIA
mkdir -p $SYNC_DIR/GB
rsync --progress --delete-after --dirs --times $INDEXES_DIR/Gb_* $SYNC_DIR/GB/
#RAMO45FOHSUHZNCIPEJX4EMDPOW44HOT6
mkdir -p $SYNC_DIR/Germany
rsync --progress --delete-after --dirs --times $INDEXES_DIR/Germany_* $SYNC_DIR/Germany/
# R7MSXJBL7PDB74LI3A5HTIUQ7QDQE5ITU
mkdir -p $SYNC_DIR/Europe
rsync --progress --delete-after --dirs --times --exclude="(France|Gb_|Germany)*" $INDEXES_DIR/*_europe_* $SYNC_DIR/Europe/
# RJ6BUYMK4CDT64G3JZWVKAK2UPNGALXXI
mkdir -p $SYNC_DIR/NorthAmerica
rsync --progress --delete-after --dirs --times $INDEXES_DIR/*_northamerica_* $SYNC_DIR/NorthAmerica/