On Fri, 12 May 2000 07:59:08 +0200 (MET DST), Bernie <[EMAIL PROTECTED]>
wrote:
> Ah yes, the everlasting problem of backing things up. We've been over this
> many times on the list and so far noone has (as far as I can remember
> anyway, please correct me if I'm wrong) presented a good sollution to the
> problem.
How about this???
md \backup
md \backup\arachne
pkzip -ex \backup\arachne\ara-back.zip \arachne\*.cfg
And then to restore things to the previous condition.....
pkunzip -o \backup\arachne\ara-back.zip \arachne
If you'de like to do this from inside Arachne.
Place these 2 lines in mime.cfg
---begin 1st line (broken for eMail format)---
file/backup.dgi |@md \\backup \n md \\backup\\arachne \n
pkzip -ex \\backup\\arachne\\ara-back.zip \\arachne\\*.cfg
---begin 2nd line---
file/restore.dgi |@pkunzip -o \\backup\\arachne\\ara-back.zip \\arachne
Now all we need to do is enter "file:backup.dgi" in the URL line and
press enter. (no quotes)
And to restore, use "file:restore.dgi"
You could place links to these two .DGIs in your hotlist if you like.
And of coarse if you would like this to be done automatically before
installing a new APM...
Change the APM lines in mime.cfg to read like this:
application/x-arachne-package APM>HTM|@md \\backup \n md \\backup\\arachne \n
pkzip -ex \\backup\\arachne\\ara-back.zip \\arachne\\*.cfg \n
$eapm.exe -u $u $1>$2
file/.apm >HTM|@md \\backup \n md \\backup\\arachne \n
pkzip -ex \\backup\\arachne\\ara-back.zip \\arachne\\*.cfg \n
$eapm.exe -u $u $1>$2
(remember, these lines have been broken for eMail)
I just tested all of these and they work perfectly.
---result of dir \backup\arachne ---
Volume in drive L is MS-RAMDRIVE
Directory of L:\BACKUP\ARACHNE
. <DIR> 5-12-00 8:21p
.. <DIR> 5-12-00 8:21p
ARA-BACK ZIP 10838 5-12-00 8:29p
3 File(s) 59294720 bytes free
_____________________________________
BTW, Those .DGIs might help users to understand how a .DGI works.
As you can see, .DGIs are not much more than batch files.
The only difference being that each command is not on it's own line.
They are seperated by "\n" and placed all on one line.
(and we must use "\\" not "\" for path indicators)<g>
--
Glenn McCorkle [EMAIL PROTECTED] North Jackson, Ohio, USA
DOS prog. for QV cameras http://www.angelfire.com/id/glenndoom/qvplay.html
Other stuff http:[EMAIL PROTECTED]/
Arachne, The Web Browser for DOS
Open the 'DOOR' to the WWW. Keep the 'windows' closed.
http://arachne.browser.org/ http://arachne.cz/