mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
cloudflare index
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -5,7 +5,8 @@
|
|||||||
*.mbtiles
|
*.mbtiles
|
||||||
*.pbf
|
*.pbf
|
||||||
|
|
||||||
config/.env
|
rclone.conf
|
||||||
|
.env
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
node_modules
|
node_modules
|
||||||
|
|||||||
@@ -5,29 +5,24 @@ AREAS=('planet' 'monaco')
|
|||||||
|
|
||||||
export RCLONE_CONFIG=rclone.conf
|
export RCLONE_CONFIG=rclone.conf
|
||||||
|
|
||||||
|
rm -rf index
|
||||||
|
mkdir index
|
||||||
|
|
||||||
for AREA in "${AREAS[@]}"; do
|
for AREA in "${AREAS[@]}"; do
|
||||||
rclone lsf -R \
|
rclone lsf -R \
|
||||||
--files-only \
|
--files-only \
|
||||||
--fast-list \
|
--fast-list \
|
||||||
"cf:ofm-$AREA" > index.txt
|
--exclude dirs.txt \
|
||||||
|
--exclude index.txt \
|
||||||
|
"cf:ofm-$AREA" > index/index.txt
|
||||||
|
|
||||||
rclone lsf -R \
|
rclone lsf -R \
|
||||||
--dirs-only \
|
--dirs-only \
|
||||||
--dir-slash=false \
|
--dir-slash=false \
|
||||||
--fast-list \
|
--fast-list \
|
||||||
"cf:ofm-$AREA" > dirs.txt
|
"cf:ofm-$AREA" > index/dirs.txt
|
||||||
|
|
||||||
rclone sync index.txt "cf:ofm-$AREA/a/b"
|
rclone copy index "cf:ofm-$AREA"
|
||||||
rclone sync dirs.txt "cf:ofm-$AREA/c/d"
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
rm -rf index
|
||||||
|
|
||||||
rclone copy \
|
|
||||||
-vvv \
|
|
||||||
--dump-bodies \
|
|
||||||
--retries 1 \
|
|
||||||
index.txt cf:ofm-monaco \
|
|
||||||
2> out
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user