Issue
I try to zip all folders in given directory. So I wrote this
find /home/user/rep/tests/data/archive/* -maxdepth 0 -type d -exec zip -r "{}" \;
zip error: Nothing to do! (/home/user/rep/tests/data/archive/tmp.zip)
zip error: Nothing to do! (/home/user/rep/tests/data/archive/tmp_dkjg.zip)
here is what this contains
user@machine:~$ ls /home/aliashenko/rep/tests/data/archive/
tmp tmp_dkjg tmp_dsf
Solution
The issue is that you have not provided a name for the zip-files it will create.
find /home/user/rep/tests/data/archive/* -maxdepth 0 -type d -exec zip -r "{}" "{}" \;
This will create separate zipped directories for each of the subfolders tmp
tmp_dkjg
and tmp_dsf
Answered By - Alex Telon Answer Checked By - Gilberto Lyons (WPSolving Admin)