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!