Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jan 2012 06:00:37 -0500
From:      "Thomas Mueller" <mueller23@insightbb.com>
To:        freebsd-questions@freebsd.org
Subject:   BSD equivalent of GNU/Linux cp -rpu ?
Message-ID:  <76.DE.27130.5DB6D0F4@smtp02.insight.synacor.com>

next in thread | raw e-mail | index | archive | help
What is the BSD equivalent of Linux cp -rpu ?

I tried that in FreeBSD, or maybe it was NetBSD, and -u was not recognized.

I think the issue would be differences between GNU/Linux coreutils and util-linux and the BSD counterparts.

the -u flag, for update, means not to copy files that exist in both the source and destination unless the source version is newer.

Idea is to backup a directory, recursively, without copying old files that haven't changed.

Would I use something like rsync or pax ?

Tom



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?76.DE.27130.5DB6D0F4>