[newbie] tar/zip then untar/unzip (in detail though )

2002-04-28 Thread Hanan Shargi

Hi,

Hi All,

On my machine that dual boots Linux 8.1 and Win89 ( which I have no CD burner 
on )
I need to do the following:

1- tar and zip my /home folder and save it on the D: partition ( a win fat32 
partition )

2- I'll split the partition I have linux on right now into two partitions: / 
and /home

3- I'll do a fresh install

4- then I want to restore the /home I just saved on the win partition to the 
new /home I just created.

I need somebody to tell me what are the commands I need to run for the taring 
and zipping, and then untarring and unzipping into the new /home directory :)

( in details please, but not with the regular: do a command -x option
without the quots thing )
 
And If everything went fine,will my mail that I saved in a folder under KDE be 
saved as well ? or no ?

thanks for your patience :)

-
Hanan AL-Shargi




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] tar/zip then untar/unzip (in detail though )

2002-04-28 Thread Darwin Gottfried

On Sun, 28 Apr 2002 18:32:05 -0400
Hanan Shargi [EMAIL PROTECTED] wrote:

[...]
 I need somebody to tell me what are the commands I need to run for the
 taring and zipping, and then untarring and unzipping into the new
 /home directory :)

as root, cd /
tar -cWvf home.tar home/  gzip -v home.tar  gzip -vt home.tar.gz

All three commands provide verification.

Alternatively you could do a bzme home.tar.gz as well, which will
compress to a .bz2 saving (most of the time) some more space yet.

-- 
Cheers
dg



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] tar/zip then untar/unzip (in detail though )

2002-04-28 Thread Robin Turner

On Monday 29 April 2002 01:32, Hanan Shargi wrote:
 Hi,

 Hi All,

 On my machine that dual boots Linux 8.1 and Win89 ( which I have no CD
 burner on )
 I need to do the following:

 1- tar and zip my /home folder and save it on the D: partition ( a win
 fat32 partition )

 2- I'll split the partition I have linux on right now into two partitions:
 / and /home

 3- I'll do a fresh install

 4- then I want to restore the /home I just saved on the win partition to
 the new /home I just created.

 I need somebody to tell me what are the commands I need to run for the
 taring and zipping, and then untarring and unzipping into the new /home
 directory :)

 ( in details please, but not with the regular: do a command -x option
 without the quots thing )

I don't know what you mean by that, but here goes 

su
cd /home
tar -cvf * home.tar # the -v option is not necessary, but I find it 
reassuring to see all those file names!
gzip home.tar #actually, you can do these as one command, I think, but I 
always prefer the long way
mv home.tar.gz /mnt/win_d # or whatever your D: drive is called

after install ...
mv /mnt/win_d/home.tar.gz /home
tar -zxvf home.tar.gz

Create a user for each home directory, then (as root, of course) for each 
directory

chown -R fred /home/fred # or whoever
chgrp -R fred /home/fred

If you have a lot of users, it would be better to do this as a shell script

 And If everything went fine,will my mail that I saved in a folder under KDE
 be saved as well ? or no ?

Yes

Sir Robin



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] tar/zip then untar/unzip (in detail though )

2002-04-28 Thread Hanan Shargi

Many Thanks Darwin  Robin

...and they say Linux lacks the support !!


cheers

-
Hanan AL-Shargi




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com