How to avoid transfering large or small files using rsync

| | 1 min read

rsync is a file and folder synchronisation tool in linux. To know more about rsync please go through this link:
http://www.zyxware.com/articles/2717/how-to-backupcopysynchronise-a-full-folder-lying-on-a-remote-server-onto-another-localremote-machine-easily-using-

There are options in rsync that will allow you to decide the size of files that are to be trasfered. You can tell rsync to not copy files that are of size greater than 'x' or files that are lesser in size 'x'. This command will help user to rsync files that are of a particular size limit say files size betwwen 'x' and 'y'

Examples:

rsync -avz --max-size='100M' source destination
rsync -avz --min-size='100M' source destination

This will rsync the folders and files from source to destination folder based on size.