736
Utilities / Re: backup and restore using zip
« on: October 20, 2017, 04:08:21 pm »How does 7z work for drive letters? For example the following backs up the C: drive using zip.Without being able to test: I guess that 'c:' matches no folder or file. I would try 'c:\' or 'c:\*' next.
zip -qryS drivec.zip c:
The following does nearly nothing.
7z a drivec.7z c:
Why can't you test?
As long as the c: drive exists, c: may refer to the root. I suspect there isn't really full drive letter support in 7z.
None of the suggestions work. The following works, but I'm still curious how to do it in one line.
c:
cd \
7z a d:ArcaOS-C.7z \
It's not important to the conversation about how 7z syntax works, but 7z is a better compressor.
ArcaOS-C.zip 1,785,138,333 bytes
ArcaOS-C.7z 1,283,110,828 bytes
The number of files is not consistent between the two archives. I don't know why.