Erik Trulsson <[EMAIL PROTECTED]> writes:
> > tar cf - user1 user2 user3 user4 | ( cd /destination ; tar xpf - )
>
> To avoid starting an extra shell process you can also do:
>
> tar cf - user1 user2 user3 user4 | tar xpf - -C /destination
Or, if you believe the manual which says -C is "probably untrustworthy"
or want better portability, you could use to do the same:
tar cf - user1 user2 user3 user4 | { cd /destination ; tar xpf - }
> "cp -r" won't work well with symlinks. ("cp" will copy the file the
> symlink points to, while tar will make a new symlink in the destination
> directory.)
But "cp -R" works well with symlinks. There might be other problems.
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message