Add rclone sync script

This commit is contained in:
Sebastian Cabrera 2025-04-13 13:56:12 -04:00
parent 0f494cf9b4
commit 2fceb0c6bd
No known key found for this signature in database

11
scripts/rclone-sync.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/bash
# Define source and destination
SOURCE="$HOME/files/media"
DEST="goji-hetzner:"
# Log file path
LOGFILE="$HOME/rclone-sync.log"
# Run rclone sync and log output to both stdout and file
/usr/bin/rclone sync "$SOURCE" "$DEST" --log-level=INFO 2>&1 | tee -a "$LOGFILE"