Linux zip -i recursively

خرید بک لینک

I'm trying to recursively include some folders in my zip, using a terminal command, for example, let's say that I have this:

/folder1/
/folder1/folder2
/folder3/
/file1
/file2

I want my zip file to include folder1 content and its subdirectories contents, and the files in the root directory (file1 and file2)

Currently I have this command:

 zip -r myzip.zip ./ -i folder1/* -i ./*

But the resulting zip doesn't includes folder2

How can I fix it?

Thanks in advance.

Recent Questions...

ما را در سایت Recent Questions دنبال می‌کنید

برچسب: نویسنده: استخدام کار بازدید: 382 تاريخ: سه شنبه 19 مرداد 1395 ساعت: 11:44

صفحه بندی