OS/2, eCS & ArcaOS - Technical > Utilities
backup and restore using zip
Neil Waldhauer:
For years, well really decades, I've used zip and unzip to backup and restore bootable volumes.
Now with ArcaOS, it doesn't work.
I use zip -qrS to backup and unzip to restore.
Now that doesn't work because \usr is full of symbolic links that get replaced by files.
This make rpm/yum stop working.
Does anyone have an alternative, or better options for zip that backup and restore symbolic links?
Dave Yeo:
Quickly testing, 7z seems to preserve symlinks. You might want to test.
Doug Bissett:
I use -9yrS. -y is supposed to handle symlinks as a standard file. That part seems to work, although I haven't tested everything.
Right now, I am concerned because -S (include system and hidden files) isn't doing what it says it is supposed to do. As a work around, I do ATTRIB -H -S os2* in the root of the boot drive before ZIP, and (optionally) ATTRIB +H +S os2* again after. There are a few other SH files, but they are nothing to worry about.
FWIW, I have formatted a boot drive, and UNZIPed a backup into it, many times. It always worked, until -S quit working. By using ATTRIB, it works again.
I have also been looking at 7z as an alternative. It compresses better, and I copy the backups to USB sticks, which seem to be getting smaller, and slower, as time goes on. :(
Neil Waldhauer:
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:
What is the 7z command to back up the whole drive? (and why isn't it documented in the p7zip package?)
Andreas Schnellbacher:
--- 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.
Navigation
[0] Message Index
[#] Next page
Go to full version