Subject: | rsync_put with copy_attr don't preserve modification time |
when I use rsync_put({copy_attr => 1}, ...), it modify the target file's modification time. and scp_put() is OK.
since rsync's option -p only for perm of file, so maybe add -t for it.
$ diff OpenSSH.pm_old OpenSSH.pm
2066c2066
< push @opts, '-p' if $copy_attrs;
---
Show quoted text
> push @opts, '-p', '-t' if $copy_attrs;
Net-OpenSSH-0.60
v5.10.1 for x86_64
2.6.32-358.18.1.el6.x86_64