rsync + filebot

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
User avatar
rednoah
The Source
Posts: 23949
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

rsync + filebot

Post by rednoah »

1. Use rsync and ssh to sync files from a remote server to the local machine (using private key authentication)
2. Use filebot to organize newly synced files into new structure (using hardlinks)
3. Repeat over night every other day

Code: Select all

#/bin/sh
echo $(date) >> /volume1/scripts/sync.log

rsync -a -v --progress --partial --human-readable -e 'ssh -T -o Compression=no -i /volume1/scripts/SSH_KEY_FILE' username@server:/home/username/files/complete /volume1/sync/ --log-file /volume1/scripts/sync.log

filebot -script fn:amc --output "/volume1/Media" --action duplicate -non-strict "/volume1/sync" --def excludeList=/volume1/scripts/amc.excludes unsorted=y --log-file /volume1/scripts/sync.log
:idea: Please read the FAQ and How to Request Help.
Post Reply