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

Re: cp, but preserve the dest attribute

On 2012-11-18 02:52 +0100, T o n g wrote:

> 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?

Should be doable with cp using suitable --no-preserve=… options.


Reply to: