rsync-ing remote videos to a local machine

We have crafted the following bash script using rsync to get all the videos from the stream folder in Babelium Project (a remote to local backup):

rsync -r --partial --progress -t --ignore-existing --rsh "ssh  -i certificate.pem" username@babeliumproject.com:/red5/webapps/oflaDemo/streams/* .

Quite long rsync command, isn’t it? Well, there are a lot of options involved here:

-r reverse rsync (copy the remote files to local hard-drive and not the other way around)
–partial keep partially transferred files
–progress show progress indication during transfer
-t preserve modification times
–ignore-existing skip updating files that already exist on the destination
ssh -i certificate.pem use a certificate to login via ssh

A handy script that you could be interested in…