Article View: aus.computers.linux
Article #59399Re: Help: Wnat to separate fielsystem
From: Craig Sanders
Date: Mon, 05 Feb 1996 00:00
Date: Mon, 05 Feb 1996 00:00
37 lines
2026 bytes
2026 bytes
ken@syd.dit.CSIRO.AU (Ken Yap) writes: davidn wrote: > | (cd /usr; tar cf - . ) | (cd /mnt; tar xvf -) > | > | The effect is to run tar twice in a pipe, the sending end creating > | an archive into the pipe starting at /usr, and the receiver grabbing > | data from the pipe and unpacking it into /mnt. > That's excellent advice and I would add this: > (cd /usr; tar cf - . ) | (cd /mnt; tar xvpf -) > The p flag says retain original mode of the files. Otherwise you get > whatever mode results from the current umask. > I've also read that cp -A (GNU cp) or something like that will also do > the job but never tried it myself. "cp -a" does the job. Preserves ownership & permissions. A GNU enhancement to cp. See man cp. I've used it many times for precisely this purpose...moving a subdirectory onto a new partition. I even do the "mv usr usr.old" thing that david recommended - it never hurts to leave yourself a way to back out of a major change, just in case it f***s up. When I'm sure that the new setup is working properly, "rm -rf usr.old" recovers a lot of disk space for me. Craig -- cas@muffin.pronet.com cas@muffin.apana.org.au * Unix Consulting: Installation, Configuration, & Support. * * --- Also, contact me if you need your Dos/Win/OS2 LAN connected to --- * * --- the Internet. --- *
Technical Details
Message-ID:
<4f35ua$pq3@muffin.pronet.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<DM3Fy6.JsM@hkuxb.hku.hk> <DM3HHx.4rv@blaze.net.au> <4eri73INN1gk@seurat.syd.dit.csiro.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102983,e56598697dbdb905 X-Google-Attributes: gid102983,public From: cas@muffin.pronet.com (Craig Sanders) Subject: Re: Help: Wnat to separate fielsystem Date: 1996/02/05 Message-ID: <4f35ua$pq3@muffin.pronet.com> X-Deja-AN: 137976231 references: <DM3Fy6.JsM@hkuxb.hku.hk> <DM3HHx.4rv@blaze.net.au> <4eri73INN1gk@seurat.syd.dit.csiro.au> organization: Utility Muffin Research Kitchen x-no-junk-mail: Do not add me to any mailing list(s) without my express request. newsgroups: aus.computers.linux