Zip only public directory

Posted by Nino55 on Super User See other posts from Super User or by Nino55
Published on 2010-04-15T17:18:15Z Indexed on 2010/04/16 1:33 UTC
Read the original article Hit count: 307

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!

© Super User or respective owner

Related posts about zip

Related posts about linux