Zip only public directory

Posted by Nino55 on Stack Overflow See other posts from Stack Overflow or by Nino55
Published on 2010-04-15T17:18:15Z Indexed on 2010/04/15 17:23 UTC
Read the original article Hit count: 135

Filed under:
|
|
|

Hi guys,

I've a lot of websites (100+ directories) I want to create a unique zip with only public subdirectory.

My structure now is like:

- Site 1
--- app
--- tmp
--- log
--- public

- Site 2
--- app
--- tmp
--- log
--- public

- ... 100+ dirs ...

Now I need a unique zip and then after unzip it I want to see this structure:

- Site 1
--- public

- Site 2
--- public

- others

Any suggestion how I can do that with linux commands zip/tar ?

Thanks so much!

© Stack Overflow or respective owner

Related posts about zip

Related posts about linux