Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Dec 2013 22:24:07 +0100
From:      Polytropon <>
To:        Daniel =?ISO-8859-1?Q?Pat=F3n?= <>
Subject:   Re: Equivalence to cp -Ru
Message-ID:  <>
In-Reply-To: <>
References:  <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Fri, 6 Dec 2013 19:56:18 +0100, Daniel Pat=F3n wrote:
> In Linux I used the following command in bash on an external USB disk:
> cp -Ru * /media/BACKUP
> Now in FreeBSD with csh the command cp is a little different.=20

This has nothing to do with the C shell, as /bin/cp is an
external command (binary). :-)

> Is there any equivalence to cp -Ru that only copy the newest
> files of my laptop to external disk?

I'd suggest using cpdup from the ports collection. It can
handle the described scenario very well (and flexible, if

> cp -a ?

This is equivelant to cp -RpP: recursive, preserve certain
attributes, do not follow symlinks. See "man cp" for details.
Linux cp's -u (--update) does not have a direct equivalent.
Try cpdup. :-)

Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

Want to link to this message? Use this URL: <>