Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2795

zip command keeps including the entire parent directory structure

$
0
0

I am trying to run this zip command on an Ubuntu WSL: zip -r /home/chansen/db-backup/backup.zip /mnt/c/data/db/*

I want the zip to contain all contents of db at the top level, but the resulting zip has those files nested inside all the parent directories. The zip file contains: mnt > c > data > db > myFiles. I just want the myFiles part to be at the top level without all those parent directories.


Viewing all articles
Browse latest Browse all 2795

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>