On Wed, 2003-07-23 at 11:09, Finne Boonen wrote:
> just wonderign, wouldn't tar.bz files not keep your attributes?

This is the tar line in a script I use to make backups of the whole
system once in a while (I know, I need a better backup system). I have
tried restoring and the whole system comes back ok. So it deffinitely
works :)

tar cjpf - / --exclude=usr/portage/distfiles/* --exclude=tmp/*
--exclude=/proc/* --exclude=/.journal | split -b 640m -
/tmp/gentoo-system-`date +"%Y%m%d"`-

Note that I split the thing into 640 megs so I can store it into a CDROM
and that I make the filename with the date extension.

You can obviously switch the 'j' option with the 'z' option or simply
none for no compression. Whatever you do keep the 'p' which preserves
file attributes and what not. You also need the 'p' while untarring, as
stated in the Gentoo install docs.

BTW, "/.journal" is the ext3 journal file which should not be copied (as
stated somewhere in the man pages of something... dont remember now).


Cheers,

-- 
Vano D <[EMAIL PROTECTED]>


--
[EMAIL PROTECTED] mailing list

Reply via email to