I want to copy
/opt/intranet and all its subdirectories and files but i need to exclude
/opt/intranet/helpdesk and all of its children. Do I start from the server I want to copy, or do I run the command from the destination server and ssh the command to the source?
rsync -avr -e ssh firstname.lastname@example.org:/opt/intranet --exclude=/opt/intranet/helpdesk . failed as it was syncing the helpdesk folder.