-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathupload.sh
More file actions
executable file
·22 lines (18 loc) · 935 Bytes
/
upload.sh
File metadata and controls
executable file
·22 lines (18 loc) · 935 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
# Upload bucket-data/ to R2, adding new files and possibly overwriting those
# that have been changed locally (occurs when a changeset's changes are split
# across multiple replication files)
# The headers being set here tell Cloudflare that the content we're uploading
# is XML that is already gzip-compressed. Storing compressed content reduces our
# storage costs. Cloudflare automatically handles serving the content correctly:
# if a client sends an Accept-Encoding: gzip header, they'll get compressed
# content, and if not they'll get plaintext content (which Cloudflare's servers
# decompress on the fly).
# You'll need to provide your own rclone.conf file containing credentials to
# your Cloudflare R2 bucket.
rclone move \
--config rclone.conf \
--progress --no-traverse \
--header-upload "Content-Type: application/xml" \
--header-upload "Content-Encoding: gzip"\
bucket-data r2:osm-augmented-diffs