Results 1 to 2 of 2

Thread: How to Zip files with ssh

  1. #1
    Silver's Avatar
    Silver is offline Administrator
    Join Date
    Dec 2009
    Location
    GrowADollar
    Posts
    325

    Post How to Zip files with ssh

    Recently I needed to zip a large folder on my linux server yet the cpanel file managed compression kept timing out as the folder was 19GB in size, instead I decided to use ssh to zip the folder, here's how:

    Code:
    # zip -r fileName.zip folder/to/zip
    • -r: Includes all files and directories -> Files
    • fileName.zip: The name of the Zipped file you are creating.
    • html: The folder you are targetting or use * if your currently in the folder.

  2. #2
    Rocketeer's Avatar
    Rocketeer is offline Member
    Join Date
    Jan 2011
    Location
    USA
    Posts
    30

    Default

    If you're using linux bzip has a better compression rate (especially helpful on large files.) You can use an archive manage like 7zip on Windows to extract it, too.

Tags for this Thread

Bookmarks

Posting Permissions

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