#!/bin/bash

HC_ID=67ed037f-3db6-4d92-ad5e-2b95781d6f9e
RCLONE_CONFIG_FILE=/opt/rclone/rclone.conf
ROOT_SRC_DIR="/srv/dev-disk-by-uuid-735f547b-f4de-4bbe-b311-aa908c484e2a/beltex/"
ROOT_DST_DIR="beltex_ggl:/nas"

curl -m 10 --retry 5 https://hc.noxs.me/ping/"$HC_ID"/start


rclone copy --config "$RCLONE_CONFIG_FILE" \
    -vvv \
    --log-file /var/log/beltex_bck_nas.log \
    "$ROOT_SRC_DIR"  "$ROOT_DST_DIR"


curl -m 10 --retry 5 https://hc.noxs.me/ping/"$HC_ID"

