[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cp, but preserve the dest attribute

T o n g <mlist4suntong@yahoo.com> writes:

> cp -a, or rsync -a, or cpio normally preserve the source attribute and 
> set the destination attribute accordingly. Now my question is, is there 
> any way for me to preserve the destination attribute and disregard the 
> source attribute. Any way to make it possible, cp/rsync/cpio or something 
> else?

touch -r dst /tmp/ref && cp src dst && touch -r /tmp/ref dst


Reply to: