Solutions Log by Dan Reiland

9Jul/092

rsync failed to set times on [filename]

This error occurs because the version of rsync on the system cannot preserve modified times for directories.

Run rsync with the following arguments to suppress this warning:

 rsync -avPO ./source/* ./destination

Explanation of switches:

1
2
3
4
a -> Archive mode (do not preserve hard links, ACLs, or extended attributes)
v -> Verbose (I like to know what is happening)
P -> Equivalent to --partial --progress (for long transfers that may be interrupted)
O -> Omit directories from times
Comments (2) Trackbacks (0)
  1. Thank you for the help. You saved my week. I will add this site to my favorites.
    Huseyin

  2. Thank you!

    btw, if you want to compress file while the transfer.. use –z option.

    rsync -avzPO source/ destination/


Leave a comment

(required)

No trackbacks yet.