I have a bash script that's attempting to sync multiple sources to a single destination. The idea is to sync the contents of my home folder along with the entire /etc/ssh directory. The script defines my sources array like this: SOURCES=("/home/$USER/" "/etc/ssh") and runs the rsync command like this: /usr/bin/rsync -aAXz -e 'ssh -p 22' \ --dry-run \ --verbose --verbose --verbose \ --delete \ --exclude-from="$EXC_FILE" \ --log-file="$LOG_FILE" \...
Originally asked by user2444894 on Stack Exchange (askubuntu) (CC BY-SA 4.0).