creating an uncompressed tar file of your entire home directory, including dot files and directories should be as easy
as
    tar cvf /tmp/michael.tar ~

notice we are tarring the entire home directory, not just some of the files in it.
viewing the contents of the .tar file and putting the results into a text file should be

    tar tvf /tmp/michael.tar > /tmp/michael-tar.txt

using gzip compression should be as easy as

     tar zcvf /tmp/michael.tar.gz ~

and getting the contents of this file are similar to the above instruction except for the "z" flag and the gz extension

     tar ztvf /tmp/michael.tar.gz > /tmp/michael-tar-gz.txt

Hope this helps

On Tue, 2005-11-15 at 07:58 -0700, Michael Walters wrote:
Hello Nick,

I successfully tarred my home directory without compression in
michael.tar with a size of 207943680 bytes which should easily be burned
to a 700 Meg CD.

Thank you for your detailed instructions which worked beautifully.

My friend at the CCNA told me a command I could use to get a text file
containing a list of contents in michael.tar.

I want to get that list put in a text file (with the txt extension) so
that I can check to see whether everything is there.

I also want to  see whether the configuration .kde directories and tiles
and the .mozilla directories and files are saved to the michael.tar file.

The reason I want the .kde directories and files and .mozilla
directories and files is that I want to be able to restore my mozilla
thunderbird address book and filters and need the configuration files to
be backed up.

I likewise was told by my friend at the CCNA I need the .kde
configuration files.

If everything checks out I will burn the michael.tar file to the CD.

If I have to burn the .kde files and directories and .mozilla files and
directories separately to another CD that is all right because CD's are
cheap. But I do want to back up my .mozilla configuration files so that
I do not lose my thunderbird address book. I do not remember why I
should save my .kde configuration files too, but it would not hurt to do so.


Thanks again for all your help. Once I do the last couple of steps
listed above I will burn the michael.tar file to a CD.

Regards,

Michael Walters

_________________________________________________________________________________


Nick Wiltshire wrote:

>The command to tar & gzip is:
>
>tar -zcf /tmp/michael.tgz /home/michael
>(then burn the file /tmp/michael.tgz to CD)
>
>without compression, remove the z option:
>
>tar -cf /tmp/michael.tar /home/michael
>
>add the v option to either command for verbose output, but note the f option 
>must come LAST:
>
>tar -zvcf /tmp/michael.tgz /home/michael
>
>to scroll help:
>
>tar --help | less
>
>or 
>
>man tar
>
>to decompress later:
>
>tar -zxvf michael.tgz /wherever/you/want
>
>or if you didn't use compression above:
>
>tar -xvf michael.tar /wherever/you/want
>
>Happy tar-ing :)
>
>
>On Monday 14 November 2005 11:43 pm, Michael Walters wrote:
>  
>
>>Michael Walters wrote:
>>    
>>
>>>Thanks Nick and everyone else,
>>>
>>>I did a du -h /home/michael and found I am using 181M in /home/michael
>>>
>>>I did a du -h /tmp and got 17K used in /tmp.
>>>
>>>Since my usage in /home/michael was only 181M I should be able to put
>>>all of my home directory on a 700M CD as 181M is far less than 700M.
>>>
>>>I was told that I could tar the current directory by doing tar . by a
>>>fellow I met at the Calgary Community Network Association. I am going to
>>>try that out now and will tell you how it goes.
>>>      
>>>
>>I tried tar . and got an error message of tar . invalid operation try
>>tar --help. I tried tar --help and a number of lines went by, only the
>>last of which I could read. I have forgotten how to scroll through a
>>help file.
>>
>>Regards,
>>
>>Michael again
>>
>>    
>>
>>>Regards,
>>>
>>>Michael Walters
>>>
>>>__________________________________________
>>>

_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying
_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

Reply via email to