mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-22 06:22:16 +00:00
cloudflare work
This commit is contained in:
33
scripts/tile_gen/cloudflare_index.sh
Executable file
33
scripts/tile_gen/cloudflare_index.sh
Executable file
@@ -0,0 +1,33 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
AREAS=('planet' 'monaco')
|
||||||
|
|
||||||
|
export RCLONE_CONFIG=rclone.conf
|
||||||
|
|
||||||
|
|
||||||
|
for AREA in "${AREAS[@]}"; do
|
||||||
|
rclone lsf -R \
|
||||||
|
--files-only \
|
||||||
|
--fast-list \
|
||||||
|
"cf:ofm-$AREA" > index.txt
|
||||||
|
|
||||||
|
rclone lsf -R \
|
||||||
|
--dirs-only \
|
||||||
|
--dir-slash=false \
|
||||||
|
--fast-list \
|
||||||
|
"cf:ofm-$AREA" > dirs.txt
|
||||||
|
|
||||||
|
rclone sync index.txt "cf:ofm-$AREA/a/b"
|
||||||
|
rclone sync dirs.txt "cf:ofm-$AREA/c/d"
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
rclone copy \
|
||||||
|
-vvv \
|
||||||
|
--dump-bodies \
|
||||||
|
--retries 1 \
|
||||||
|
index.txt cf:ofm-monaco \
|
||||||
|
2> out
|
||||||
|
|
||||||
0
scripts/tile_gen/upload_cloudflare.sh → scripts/tile_gen/cloudflare_upload.sh
Normal file → Executable file
0
scripts/tile_gen/upload_cloudflare.sh → scripts/tile_gen/cloudflare_upload.sh
Normal file → Executable file
Reference in New Issue
Block a user