If you need to rsync some files over network, this is the command
rsync -c -az -ersync -c -e 'ssh -p 2020' --stats --progress --whole-file firstname.lastname@example.org:data/files/ ~/data/files/
Script will connect to myserver.com on port 2020 and copy files from my home directory to local home directory.
If you want to access folder outside of your home directory, just add a slash after .com:
Filter by file extension
~# rsync -c -az -ersync -c -e 'ssh -p 2020' --stats --progress --whole-file --include="*/" --include='*.gif' --exclude="*" email@example.com:data/files/ ~/data/files/
This will copy gifs only.
Always remember to combine exclude and include together – if you omit exclude parameter, your –include won’t have any affect.
Fastest rsync to copy millions of files between servers
rsync -a -e 'ssh -p 2020' --stats --whole-file firstname.lastname@example.org:data/files/. ~/data/files
It doesn’t compress the file, doesn’t look for checksum difference, basically it just looks if file exists on new server – if it doesn’t copy it. Uses very little cpu and it skips building of file list
Hola! I’ve been following your web site for a long time now and finally got the bravery to go ahead and give you a shout out from Porter Texas! Just wanted to say keep up the great job!
online learning http://www.educationhints.eu
Hello my friend! I wish to say that this post is amazing, great written and include approximately all significant infos. I would like to see more posts like this .
I want to to thank you for this good read!! I certainly enjoyed every little bit of it. I have you book-marked to look at new things you post…