Add rclone sync script
This commit is contained in:
parent
0f494cf9b4
commit
2fceb0c6bd
1 changed files with 11 additions and 0 deletions
11
scripts/rclone-sync.sh
Executable file
11
scripts/rclone-sync.sh
Executable 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"
|
Loading…
Add table
Add a link
Reference in a new issue