Ivan Zugec

Drupal Consultant

Using zip via ssh


# zip -r drupal.zip html

This zips all files and directories

  • -r:Includes all files and directories -> Files
  • drupal.zip:The zip file you want to create
  • html:The folder you are targetting or use * if your currently in the folder.
Category: 

Comments

FarmVille's picture

Submitted by FarmVille on

My hosting control panel its such a piece of crap that I cant zip my entire site using the panel so I was in need of this and worked like a charm!

Thanks a lot buddy!

fleet1ng's picture

Submitted by fleet1ng on

Just the information a friend of mine needed. Works perfectly for her hosting provider.

SEO Lexington KY's picture

Just what I was looking for thanks, this makes moving my Joomla sites so much easier.

Jason's picture

Submitted by Jason on

This is great. But one drawback I've found is that it (at least with my host) does not retain the user and group designation. It sets everything to root.

PcTricks.info's picture

The pc trick above seems simple but this is one of the best tips for zipping directories and files. Must appreciate your great work by sharing the above stuff of zipping. This thing just made my day a good one..

Add new comment