FG
💻 Software

zip selected directories recursively in linux

Fresh7 days ago
Mar 15, 202622741 views
Confidence Score0%
0%

Problem

I would like to zip only selected directories(and its child directories as well) I have many directories in the current folder like app, content, db, library etc. But I would like the zip only app and content and its child folders. I am trying the following. But I am getting the following error. zi…

Error Output

zip -r ../backups/code/20110625 -i app/* -i content/* . *

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: zip selected directories recursively in linux

Low Risk

Try: You need to put the name of the zipfile first.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment