to compress: tar -zcvf name_of_the_file.tar.gz *
to uncompress: tar -zxvf name_of_the_file.tar.gz

----- Original Message ----- 
From: "Jim Hale" <[EMAIL PROTECTED]>
To: "Mailing List - Red Hat (Co)" <[EMAIL PROTECTED]>
Sent: Thursday, May 16, 2002 11:11 AM
Subject: Archiving Folders


> How would I compress/archive a set of folders into one file?
> 
> I mean, what I'd like to do is archive the COMPLETE contents of my
> /var/www folder (including all folders, subfolders, users/groups,
> read/write access etc) so that I can copy the file to another machine
> for backing up to tape with my other stuff.
> 
> I have been using Samba to map to the folder, but when I copy stuff over
> to my Win2K backup machine, if something crashes on the Linux box and I
> have to copy stuff back, I'm having to reset user/groups and their
> permissions to the folders and files.
> 
> I want a file that I can copy back to the Linux box, un-archive (with
> paths) so that everything is back to normal in a minimum amount of time.
> 
> I used to do stuff like this with the DOS version of PkZip many moons
> ago.
> 
> Thanks!
> 
> Jim Hale
> ---
> Jim & Kathy's Website Collection
> http://hale.dyndns.org
> 
> 
> 
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to