Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Dec 2013 22:24:07 +0100
From:      Polytropon <freebsd@edvax.de>
To:        Daniel =?ISO-8859-1?Q?Pat=F3n?= <d.paton.d@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Equivalence to cp -Ru
Message-ID:  <20131206222407.8468245b.freebsd@edvax.de>
In-Reply-To: <20131206195618.899fe8b4e89177f1bd331344@gmail.com>
References:  <20131206195618.899fe8b4e89177f1bd331344@gmail.com>

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:
>=20
> cp -Ru * /media/BACKUP
>=20
> 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
required).



> 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. :-)


--=20
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20131206222407.8468245b.freebsd>