rsync fleet mgmt

Not the most elegant, but

Centrally - create an account that is limited to reading your files and run ssh-keygen so that you get an authorized-keys file in it's ~/.ssh folder
Remotely - run ssh-keygen with no passphrase and then ssh-copy-id to the central server as that user

Now your remote clients can connect without a huge security issue as them logging in as you with a low security key

 put in a cronjob

0 1 * * * /home/allen/bin/rsync-video  >> /home/allen/rsync-video.log 2>&1

and create a file

rsync \
--archive \
--bwlimit=3000 \
--delete \
--exclude .DS* \
--exclude ._* \
--exclude .sync* \
--exclude .Trash* \
--exclude .st* \
--human-readable \
--inplace \
--itemize-changes \
--progress \
--recursive \
--verbose \
--stats \
sync@server.gattis.org\
:/srv/media/video/movies.1 \
:/srv/media/video/movies.2 \
:/srv/media/video/tv.shows.1 \
:/srv/media/video/tv.shows.2 \
:/srv/media/video/tv.shows.3 \
/srv/media/video




Comments