I have just run the following command in a bash
script
rsync -av -update --dry-run --delete $EX "$FROM" "$TO"
the sync ran, --dry-run
was ignored (luckily that was ok this time).
Does any one see any reason why --dry-run
would be ignored here?
Best Answer
That's because the correct option is
--update
, not-update
. Your command should be:When
rsync
does the dry-running, the last line of defaultrsync
stat output will show the string(DRY RUN)
e.g.:Full output: