[lug] Confused about what cp -x does
Evelyn Mitchell
efm at tummy.com
Sat Jun 29 12:29:53 MDT 2002
The info page for cp is more complete than the man page:
`-x'
`--one-file-system'
Skip subdirectories that are on different filesystems from the one
that the copy started on. However, mount point directories
_are_ copied.
efm
* On 2002-06-29 18:26 Peter Hutnick <peter-lists at hutnick.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello,
>
> I am trying to backup my home dir before going ahead with a RH 7.2-7.3
> upgrade. I keep most stuff on another machine that is NFS mounted at
> /home/peter/archive, but there are some things in my local home that I'd like
> to save.
>
> So I did "cp -ax * archive/backup/." with ~ as my working directory. Now, I'd
> think that he "x" would keep it from "looping" because it wouldn't be copying
> anything on the NFS filesystem, but that isn't what's happening; it is
> happily recursing down into archive/.
>
> Any ideas?
>
> - -Peter
>
> - --
> /"\ ASCII Ribbon campaign against HTML e-mail
> \ /
> X Get my PGP key at http://hutnick.com/pgp
> / \ 6128 5651 6F23 EC17 6EBD 737D 960A 20E6 76CA 8A59
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.6 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
>
> iD8DBQE9Hflmlgog5nbKilkRApiJAJ9P2zn3+kVrapkSxa6xABcZSIUB8ACfeIIH
> tKty8Ne4h2a956NgYy2Pmtc=
> =3T79
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us port=6667 channel=#colug
--
Regards, tummy.com, ltd
Evelyn Mitchell Linux Consulting since 1995
efm at tummy.com Senior System and Network Administrators
http://www.tummy.com/
More information about the LUG
mailing list