I use this command to extract a zip file containing a backup of my document root:
unzip /var/www/html/html-2018-01-08-02\:52\:11.zip -d /var/www/html/
This extracts all data inside the document root, but there's a problem, the current state is a duplicated document root:
Of course I can move the data back with
mv and then delete the duplicated document root with
cd /var/www/html && rm -rf /var/www/html, but the most minimal solution would be to achieve that directly form
I aspire that the duplication won't happen in the first place.
How to unzip indoes only of a particular tier/level of a zip file, with
For example, my zip includes:
- First tier:
- Second tier:
- Third tier:
I want to extract only the inodes of the forth tier (tier 3, in zero-based index, of course).
The end state should be: