How to use 7z to archive all the files and directories (including hidden ones) in a directory?
11
votes
4
answers
32876
views
Because of specifics of my archiving needs I am not comfortable with solid tar.gz archives and use 7z instead.
I use the following command to do this:
7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=off ~/my/folder.7z ~/my/folder/*
To create an archive of everything inside
~/my/folder/
as the ~/my/folder.7z
file.
But ~/my/folder/.hiddenFolder
doesm't get into the archive then. How to fix this? Isn't *
supposed to return all the files and folders?
Asked by Ivan
(18358 rep)
Nov 2, 2011, 10:41 PM
Last activity: Sep 13, 2022, 05:09 AM
Last activity: Sep 13, 2022, 05:09 AM