OS/2, eCS & ArcaOS - Technical > Utilities

backup and restore using zip

<< < (2/3) > >>

ivan:
7zip does things in its own way which isn't the way we are used to.

Good luck making heads or tails out of that for anything more complicated than compressing a few files for storage.

A manual for the command line version we have appears at https://info.nrao.edu/computing/guide/file-access-and-archiving/7zip/7z-7za-command-line-guide

 

Neil Waldhauer:

--- Quote from: Andreas Schnellbacher on October 20, 2017, 10:50:33 am ---
--- Quote from: Neil Waldhauer on October 20, 2017, 10:39:26 am ---How does 7z work for drive letters? For example the following backs up the C: drive using zip.

zip -qryS drivec.zip c:

The following does nearly nothing.

7z a drivec.7z c:

--- End quote ---
Without being able to test: I guess that 'c:' matches no folder or file. I would try 'c:\' or 'c:\*' next.

--- End quote ---

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.

Andreas Schnellbacher:

--- Quote from: Neil Waldhauer on October 20, 2017, 04:08:21 pm ---Why can't you test?

--- End quote ---
I'm now back at home.


--- Quote from: Neil Waldhauer on October 20, 2017, 04:08:21 pm ---I suspect there isn't really full drive letter support in 7z.

--- End quote ---
Indeed. Drive specs were simply ignored. Moreover, forward slashes have to be used. This doesn't work:

--- Code: ---e:
cd \var
7z a drivee.7z \

--- End code ---

This works:

--- Code: ---e:
cd \var
7z a drivee.7z /

--- End code ---

This works as well:

--- Code: ---e:
cd \var
7z a drivee.7z /*

--- End code ---

That looks like a bug.

OS4User:
try this http://moveton.tk/files/p7zip-4.42-bin-os2-ilibc61-r2.zip

Neil Waldhauer:
From my testing zip 3.0

zip -qryS drivec.zip c:

does make a good backup that works with symlinks (i.e. yum still works after restore)

A restore of the backup I did with 7z does not work; it cannot find the desktop. The desktop seems to be restored, but ArcaOS can't use it.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version