Final question: best wasy to move /, /usr, /home, etc?
paubert at iram.es
Tue Feb 19 02:05:14 EST 2002
On Mon, 18 Feb 2002, Derrik Pates wrote:
> On Mon, Feb 18, 2002 at 09:42:53AM +0100, Giuliano Pochini wrote:
> > cp -a works fine.
> Yeah, unless you don't care about any hard links (which a simple 'cp -a'
> will happily stomp all over). Using tar is a better bet (I've done it
> plenty of times, it works).
Strange enough, cp -a does preserve hard links for me. As it should
since -a is equivalent to -dpR and -d means (from info cp):
Copy symbolic links as symbolic links rather than copying the
files that they point to, and preserve hard links between source
files in the copies.
I've used it often enough to be pretty sure about this feature.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-dev