Hi > I want to compress a web tree to copy to another system whilst leaving the > original tree unaltered, > do I need to 1st tar it and then gzip it, or is there a single step > solution ? > > I tried bzip2 as per RedHat docs, but it seems RH docs differ from what > bzip2 does: > > -------------------- > You can use bzip2 to compress multiple files and directories at the same > time by listing them with a space between each one: > > bzip2 filename.bz2 file1 file2 file3 /usr/work/school > > The above command compresses file1, file2, file3, and the contents of the > /usr/work/school directory (assuming this directory exists) and places > them in a file named filename.bz2. > -------------------
An easy, nice way of doing it is rsync: rsync -av -e ssh /webstuff/path/ thatbox:/webstuff/path for local network (quickest way - no z) rsync -avz -e ssh /webstuff/path/ thatbox:/webstuff/path for remote network (compression slows down process, comms is quick) do-do RFM the trailing /'s are significant. The added benefit is keeping the other wwwpage upto date (same cmds again) whereas with the tar option you must re-create the tree every change. James -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
