1. rsync command for multi exclude files or folder $ rsync -arv --exclude={'course','download','tmpfile.txt'} /var/www/ /backup/www one folder $ rsync -arv --exclude 'download' /var/www/ /backup/www one file $ rsync -arv --exclude 'tmpfile.txt' /var/www/ /backup/www wildcard or patterns $ rsync -arv --exclude '*.iso' /var/www/ /backup/www -a: -rlptgoD -v: verbose -r: --recursive references https://linuxhint.com/exclude-directory-rsync/ https://phoenixnap.com/kb/rsync-exclude-files-and-directories