I am attempting to run an rsync command that will copy files to a new location. If I run the rsync command directly, without any parameter expansions on the command line, r
I like to break the arguments onto separate lines, for convenience sake:
ROPTIONS=( -aNHXxEh --delete --fileflags --exclude-from=$EXCLUDELIST --delete-excluded --force-change --stats --protect-args )
and then call it thusly:
rsync "${ROPTIONS[@]}" "$SOURCE" "$DESTINATION"