When copying files over the network, the files informations can be modified.
When using
cp, one can avoid this issue by using the
-a which will do the copy in
archive mode, meaning that it will keep the links, preserve mode, ownership and timestamps and the copy is recursive.
the solution to this over the network is
rsync alongside with
ssh.
read more