Adds auto-update to containers, enables auto-update for root, sync only at 8 and 20, excludes some files from sync
This commit is contained in:
@@ -8,7 +8,7 @@ target=/var/mnt/nas/containers/nextcloud/storage/data/__groupfolders/1/files/dow
|
||||
|
||||
num_torrents="$(find "${torrents}" -mindepth 1 -maxdepth 1 | wc -l)" || echo 0
|
||||
if [[ "${num_torrents}" -gt 0 ]]; then
|
||||
mv "${torrents}"* "${target}/"
|
||||
mv "${torrents}/"* "${target}/"
|
||||
fi
|
||||
echo "Found ${num_torrents} torrent files"
|
||||
num_jdownloader="$(find "${jdownloader}" -mindepth 1 -maxdepth 1 | wc -l)" || echo 0
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
#!/bin/bash
|
||||
/root/scripts/rclone sync --links /var/mnt/nas encrypted-parents:Backup/
|
||||
/root/scripts/rclone --log-level INFO --log-file /var/log/rclone-parents.log sync --exclude nextcloud.log --exclude qbittorrent/storage/downloads/** --exclude jdownloader/storage/output/* --links /var/mnt/nas/containers encrypted-parents:Backup/containers
|
||||
|
||||
Reference in New Issue
Block a user