11 lines
281 B
Bash
Executable file
11 lines
281 B
Bash
Executable file
#!/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"
|