# =============================================================================
# backup-replication configuration
#
# The S3 values are the same account the two agents use. The three Dropbox
# values below are the owner's: see README.md for how to obtain them.
# =============================================================================

# --- What is copied ----------------------------------------------------------
S3_BUCKET=backups
DROPBOX_ROOT=homelab-backups

# --- When (UTC, like the agents' schedules) ---------------------------------
REPLICATION_UTC_TIME=05:00

# --- Offsite retention (longer than the primary's 14/7 days on purpose) ------
# node-02 alone is ~3.6 GiB per run, so 30 days is ~110 GB. Raise deliberately.
OFFSITE_RETENTION_DAYS=30

# --- Source: SeaweedFS S3 ----------------------------------------------------
RCLONE_CONFIG_S3_TYPE=s3
RCLONE_CONFIG_S3_PROVIDER=Other
RCLONE_CONFIG_S3_ENDPOINT=http://192.168.1.16:10000
RCLONE_CONFIG_S3_REGION=us-east-1
RCLONE_CONFIG_S3_FORCE_PATH_STYLE=true
RCLONE_CONFIG_S3_ACCESS_KEY_ID=mildgrim
RCLONE_CONFIG_S3_SECRET_ACCESS_KEY=R3dal3rt

# --- Destination: Dropbox ----------------------------------------------------
# Fill these three in. Paste the token JSON on one line, unquoted: it contains
# double quotes of its own, and Docker's env_file takes an unquoted value
# literally.
RCLONE_CONFIG_DROPBOX_TYPE=dropbox
RCLONE_CONFIG_DROPBOX_CLIENT_ID=CHANGE_ME
RCLONE_CONFIG_DROPBOX_CLIENT_SECRET=CHANGE_ME
RCLONE_CONFIG_DROPBOX_TOKEN=CHANGE_ME

# --- Transfer tuning --------------------------------------------------------
RCLONE_TRANSFERS=2
RCLONE_CHECKERS=4
