Re: cp -ar question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----Original Message-----
From: Craig White <craigwhite@xxxxxxxxxxx>
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

Attachment: pgpDhJFKaUTn5.pgp
Description: PGP signature


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux