Crates.io | s3-sync-rs |
lib.rs | s3-sync-rs |
version | 2023.4.3 |
source | src |
created_at | 2023-10-21 19:29:32.917273 |
updated_at | 2023-10-22 08:47:38.734883 |
description | Sync local folder(s) to an S3 backend |
homepage | |
repository | https://github.com/openartcoded/s3-sync-rs |
max_upload_size | |
id | 1010202 |
size | 81,189 |
Sync a given folder with S3.
If used with SmsGatewayAndroid and ArtemisMQ, it can send an sms when a job ran successfully. It uses MQTT protocol to transmit the sms request to the android phone that sends the sms.
version: "3.9"
services:
s3-sync-dump:
restart: unless-stopped
build:
context: .
volumes:
- ./config_example/configs.json:/var/s3/configs.json
- ./data/backend/dump:/var/s3/dump
- ./data/backend/dump-snapshot:/var/s3/dump-snapshot
- ./data/backend/files:/var/s3/files
environment:
RUST_LOG: "info"
S3_ENDPOINT: "<s3-endpoint>"
S3_REGION: "<s3-region>"
AWS_ACCESS_KEY_ID: "<key>"
AWS_SECRET_ACCESS_KEY: "<secret>"
S3_CONFIG_FILE_PATH: "/var/s3/configs.json"
# sms notification
PHONE_NUMBER: "+32488112233" # must be valid
MQTT_ENABLED: "true" # must be set to true
MQTT_TOPIC_PUBLISHING: "sms" # topic to publish sms request, default set to sms
MQTT_HOST: "artemis" # hostname, default set to 127.0.0.1
MQTT_PORT: 1883 # port, default to 1883
MQTT_CLIENT_ID: "s3_mqtt_subscriber" # client id, can be something else
MQTT_USERNAME: "root"
MQTT_PASSWORD: "root"