I am using rsync
to backup files from mac to external hard drive. For example:
rsync -av --delete ~/Pictures/ "/Volumes/My Passport/Mac Backups/Pictures"
Before I do it, I run the same command in dry-run, by adding -n
option:
rsync -avn --delete ~/Pictures/ "/Volumes/My Passport/Mac Backups/Pictures"
As I understand, I should see only the difference what will be copied/changed, but for some reason all folders and files are getting printed out. Though if I test the same command locally with 2 folders, I can see only the difference what has changed. Why it is so and how can I fix it?
Updated:
After adding -i
option (thanks to Learner answer) I was able to identify why all the files are getting listed. It seems that permissions are not being copied. All folders (and files) have this:
.d...p... my folder/
I added -p
(and -o
, -g
) option that should copy the permissions, but still no luck. Any ideas?
rsync <source>/ <destination>
– jaimet Jan 06 '24 at 00:04