cp -ar question

Vikram Goyal vikigoyal at gmail.com
Sat Nov 26 16:27:42 UTC 2005


-----Original Message-----
From: Craig White <craigwhite at azapple.com>
Sent: Sat, Nov 26, 2005 at 08:31:24AM -0700
To For users of Fedora Core releases
Subject: Re: cp -ar question


> On Sat, 2005-11-26 at 08:46 -0600, John Pierce wrote:
> > > if /media/usbdisk is some foreign type of file system (i.e. vfat),
> > > permissions aren't supported.
> > >
> > I agree, but if you store your home directories on a vfat file system,
> > when you bring them back you will also have lost ownership as well,
> > userid and groupid will have gone away.
> > 
> > If you want to back up your home directories then you should create a
> > file system that is the same as the one you use for your live
> > installation.
> > 
> > I would not backup my linux file systems on a vfat partition!
> ----
> I think you can preserve the permissions if you tarball them onto a vfat
> partition and extract them on the appropriate partition (i.e. ext3)
> 
> Craig
> 
> 
Right,

tar -cps target-dir/            > /some-vfat-partition/target-dir.tar

For a compressed tar.
tar -cps target-dir/|bzip2 -9   > /some-vfat-partition/target-dir.tbz
OR
tar -cjf        /some-vfat-paretition/foo.tar.bz2       bar/

should do it.
-- 
vikram...
 o
~|~
 =
Registered Linux User #285795
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20051126/e65d41e7/attachment-0001.sig>


More information about the fedora-list mailing list