I copied many files in many folders (~54GB) from an ext4 location to another with cp ~/1 ~/2 -d -r -v -i
in bash. I then wanted to check that all files were copied correctly, so I ran rsync --delete -vturOn ~/1 ~/2
, but rsync wanted to copy all the files. Why is this?
PS: I intended to use cp
with -a
, but used -d
in error.
Edit: An answer here led me to use the --itemize-changes
flag which shows me >f..t......
for all files. The man page indicates that the t
means modification times are different, the type-files is a file (f
) and the item attributes only are being modified (.
). Is this correct? So all that will be changed are the modification times?
Edit: I ran the rsync
(without the -n
) and despite the t
modification times being different, it proceeded to copy all the files again (the actual file content), which is unexpected because rsync should do a diff copy anyway, which should be noting?
Edit: Stopped the sync and reran without the -t
parameter. Now the itemized changes showed 'T' instead of t
. It seems that I will have to copy all the files via rsync at least once if I wish to use rsync on these files in the future.
Edit: I deleted the target files and copied everything again with rsync with -van
parameters.