auto: sync 2026-05-28
This commit is contained in:
Executable
+36
@@ -0,0 +1,36 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
LOG=/var/log/rclone-unas-sync.log
|
||||
BWLIMIT="05:30,7.5M 01:00,20M"
|
||||
|
||||
echo "$(date -u +%Y-%m-%dT%H:%M:%SZ) unas-sync starting" | tee -a "$LOG"
|
||||
|
||||
# Job 1: Immich originals → JottaCloud Photos (visible at jottacloud.com/photo)
|
||||
rclone sync /mnt/pve/unas/media/images/library/ jottacloud:Photos/ \
|
||||
--transfers=4 --checkers=8 \
|
||||
--bwlimit "$BWLIMIT" \
|
||||
--log-file="$LOG" --log-level INFO
|
||||
|
||||
# Job 2: irreplaceable personal data
|
||||
rclone sync /mnt/pve/unas/ jottacloud:UNAS/ \
|
||||
--transfers=4 --checkers=8 \
|
||||
--bwlimit "$BWLIMIT" \
|
||||
--exclude "media/images/library/**" \
|
||||
--exclude "media/images/upload/**" \
|
||||
--exclude "media/images/thumbs/**" \
|
||||
--exclude "media/images/encoded-video/**" \
|
||||
--exclude "media/images/profile/**" \
|
||||
--exclude "media/images/backups/**" \
|
||||
--exclude "media/movies/**" \
|
||||
--exclude "media/emulation/**" \
|
||||
--exclude "media/Torrents/**" \
|
||||
--exclude "media/music/**" \
|
||||
--exclude "media/podcasts/**" \
|
||||
--exclude "services/**" \
|
||||
--exclude "backup/**" \
|
||||
--exclude "backup-staging/**" \
|
||||
--exclude "dump/**" \
|
||||
--exclude "test_perm" \
|
||||
--log-file="$LOG" --log-level INFO
|
||||
|
||||
echo "$(date -u +%Y-%m-%dT%H:%M:%SZ) unas-sync done" | tee -a "$LOG"
|
||||
Reference in New Issue
Block a user