Page 1 of 1

rsync + filebot

Posted: 25 Feb 2015, 03:34
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