Find the answer to your Linux question:
Results 1 to 3 of 3
Hello Everybody, I want to zip all the websites that are hosted on my servers in such a way that I zip all the individual sites and then create a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2004
    Posts
    5

    using tar command to zip files.


    Hello Everybody,
    I want to zip all the websites that are hosted on my servers in such a way that I zip all the individual sites and then create a single zip file of all the zip files that have been created. I want to do the operation in a single command. Does anybody know how can that be done ? Is there any way I can do it using the tar command.

    If not then also please let me know the next best possible solution to this.

  2. #2
    Just Joined!
    Join Date
    Nov 2002
    Location
    USA
    Posts
    99
    As far as I know, you can't do that with one tar command. Tar is the best program for the job, and you can just use the 'z' option if you need compression. You'll need to write a shell script to do the whole job.

  3. #3
    Linux Engineer big_k105's Avatar
    Join Date
    May 2003
    Location
    Fargo, ND
    Posts
    901
    i would guess first use the tar command that gunzip the tar file. look up some info on these two commands in the man pages tar and gunzip
    BIG K aka Kyle
    Programming Forums
    www.kylekonline.com
    Please don\'t PM me for help-- ask in the forums instead!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •