Jim Hale wrote: >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! > > > I'm not currently up on all the switches for it and what not, but I'd suggest opening a terminal window and trying 'info tar'. This will pop up the info viewer for tar, which should be able to do everything you want and then some. A shortcut for us lazy folk is to open Midnight Commander (mc), move to the directory in question, hit F2, and select 'Make a release of the current subdirectory (tar.gz)' This will take care of most of the dirty work for you. The tar.bz2 version has somewhat better compression, but takes longer to pack and unpack. Six one way, half a dozen the other.
HTH, Monte _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list