#!/bin/bash

RCLONE_SOURCE=/mnt/user/Backup/borgmatic
RCLONE_DESTINATION=tdrive:/Backup

rclone copy "$RCLONE_SOURCE" "$RCLONE_DESTINATION" \
--bwlimit 0.2M \
--checkers 8 \
--contimeout 60s \
--drive-chunk-size 512M \
--drive-pacer-burst 2000 \
--drive-pacer-min-sleep 5ms \
--drive-stop-on-upload-limit \
--fast-list \
--ignore-existing \
--low-level-retries 10 \
--progress \
--retries 3 \
--stats 1s \
--stats-file-name-length 0 \
--timeout 300s \
--tpslimit 8 \
--tpslimit-burst 5 \
--transfers 4 \
--user-agent CartacheIsHome \
--log-level NOTICE \
--log-file /logs/rclone/borgmatic_upload.log 