Quoting Niall O Broin (niall at linux.ie):
> Another option is to use cp -a (I'm using find | cpio for years, something I
> started to do on Unices which didn't have a -a option to cp)
This is only relatively safe on the GNU implementation of cp, however,
and it's a good idea to be in the habit of do cp -ax (eXclude
sub-mounted filesystems), just to prevent you from accidentally copying
/proc , one day.
> However, both the cp and cpio methods failed for me here - they didn't
> maintain the symlinks and filled the destination disk.
That's very odd, given that you used the appropriate switches.
I've included a number of tips about copying directory trees and
filesystems, both within and between Linux hosts, here:
http://linuxmafia.com/~rick/linux-info/kb/200
And, yes, rsync _is_ wonderful. It's my preferred tool for such things.
--
Cheers, "Learning Java has been a slow and tortuous process for me. Every
Rick Moen few minutes, I start screaming 'No, you fools!' and have to go
rick at linuxmafia.com read something from _Structure and Interpretation of
Computer Programs_ to de-stress." -- The Cube, www.forum3000.org
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!