🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #261931

Re: How to recover from Windows 40Tude Dialog data corruption

#261931
From: That Guy... You Know, The Guy Wi...
Date: Thu, 06 Apr 2017 03:22
209 lines
10096 bytes
Alexandre Janssens wrote:

> In <news:jsgz0z2oen96.dlg@b.rose.tmpbox.news.arcor.de>, Bernd Rose
> <b.rose.tmpbox@arcor.de> wrote:
> 
>>> How to recover from the common 40Tude Dialog data corruption:
>> 
>> Following these suggestions is likely to produce an even more
>> corrupted database.
> 
> I understand what you're intimating Bernd, but the fact is that you want to
> recover your setup somehow, after a corruption occurs in dialog.
> 
> So the question is how to recover.
> 1. The hard way to recover is to start fresh.
> 2. The easier way to recover is to at least get back your setup.
> 
> The things that matter are your servers, logins, passwords, and categories
> (I make extensive use of categories). 
> 
> What matters less are the groups you're subscribed to.
> 
> What doesn't matter at all are your sent messages, drafts, complete
> grouplists, and current message lists, since they can all be regenerated
> easily.
> 
> It's the initial setup, before any messages are downloaded, which is what
> I'm trying to recover when dialog corrupts itself.
> 
>> Btw.: If corruption is "common", than sth.
>> is wrong with the setup (faulty hardware, OS/driver defect or
>> misconfiguration, UAC install folder,...) from beginning.
> 
> It's not a question of if a corruption will occur. It's a question of when.
> I have been using Dialog for about five years and it gets corrupted on
> various machines at a sporadic rate, but it has happened easily at least a
> dozen times, maybe a score of times. 
> 
>>> One technique:
>>> A. At initial setup, make a copy of the good data directory.
>>>    The .\data\servers.dat file gives you back all your servers &
>>> identities!
>> 
>> Contains just the initial state. Any later backup will contain
>> a more current version, which is preferable, because it will also
>> contain changed settings (SSL, port, pipelining, password).
> 
> I agree with you that servers.dat gives you your servers, ports, logins,
> and passwords, which are critical to recover.
> 
> But I can't for the life of me yet figure out which file contains the
> identities, and their settings (email, name, message id options, attribute
> options, etc.).
> 
> Bernd: Do you know offhand what file contains the dialog identities?
> 
>> 
>>>    The cat_{1,2,3,4,5}.cto file gives you (empty) category tabs.
>> 
>> cat_X.cto contains only *user defined* categories. Usually, there
>> aren't any on initial setup. Again, restoring from the most current 
>> backup is preferable to any "initial setup" state. Btw.: X starts 
>> with 0 (not 1). 
> 
> Thanmks for reminding me that it starts with user-defined cateogyr
> "cat_0.cto". I make extensive use of categories instead of using
> subscriptions, where it takes about an hour just to manually set up the
> categories.
> 
> When I brought back the cat_X.cto files, I only got the tabs with the
> correct names, but I didn't get all the groups that were in each category.
> 
> Bernd: Do you know offhand what file contains the groups that are inside
> each of the user-defined categories?
>  
>>>    The "groups.{idg,sdg,sub.idx} files handle the groups.
>> 
>> You missed alldsc.dss from the list of aggregate files of server
>> information and the server-specific *.gtl files.
> 
> Thank you Bernd for suggesting the alldsc.dss and *.gtl files.
> I saw them, but I wasn't successful recovering them. 
> 
> Are they the missing information?
> 1. What file contains the dialog identities?
> 2. What file contains the groups inside user-defined categories?
> 
>> Groups_sub.idx,
>> OTOH, belongs to your earlier group of category tabs. It is the
>> cat_X.cto equivalent for "Subscribed".
> 
> Aha! Maybe that's the answer to the question of what file contains the
> groups that are assigned to each user-defined category!
> 
>>> B. At corruption time, make a copy of the corrupted data directory.
>>> C. One by one replace the data files you think are corrupted.
>> 
>> If a database cleanup did occur between backup and this restore,
>> then bricking the database by such a procedure is unavoidable. In
>> all other cases, it is just likely. Please note: <Compact Database>
>> *always* reorganizes the database. (Groups are likely to get other
>> numbers, index positions and pointers change.) But it isn't the
>> only cause for internal database changes.
> 
> Thank you for the warning about "compact database" always changing things
> out from under us. I don't normally use that command. I'm just trying to
> "fix" a corruption when it happens (because it will happen).
> 
> I think the better way to fix a corruption is to have a saved copy of the
> initial setup. 
> 
> What's important to save (in this order) are:
> 1. Servers (servername, nntp port, logins, and passwords)
> 2. Identities (name & email & attribute lines mostly)
> 3. Categories (names plus the groups inside each user-defined category)
> 
> What's less important to save are:
> 4. Scripts (I have a couple of scripts which would be nice to save)
> 
> I think if I could save those 4 things by archiving the related data files,
> then I could more easily recover from the dialog data corruption.
> 
>>> Tricks for getting back to where you were (depends on what was corrupted)
>>> A. File > Update all database files
>> 
>> This command is obsolete. Its only function was to change internal
>> database structures between an older database format to the (as of
>> 2003/2004) current one.
> 
> Thank you Bernd for explaining that, essentially, the update doesn't really
> do anything anymore.
>  
>>> B. Online > Update grouplists
>> 
>> That's of no importance. If you are about to look for new groups,
>> you'll refresh the group list, anyways. Apart from that, it doesn't
>> matter, if Dialog has current information about the groups hosted
>> on the server(s) you subscribed to. If you have all your subscribed
>> groups in your last (hopefully current) backup, that's all you'll
>> need in your restore process.
> 
> Thank you Bernd for understanding that the least important thing to recover
> is the group list, since it's easily updated.
> 
> I don't use the subscribed/unsubscribed process so for me, I only care
> about the roughly dozen groups that are inside of each user-defined
> category, of which I have about a dozen user-defined categories.
> 
> Of course I can manually re-create everything but I'm hoping for a way to
> find the files that will re-create the initial setup.
> 
>>> C. File > Compact database
>>> 
>>> Hints:
>>> A. When it corrupts, close Dialog (never copy files while Dialog is
>>> running).
>>> B. Why? Because some files will be overwritten or deleted when Dialog
>>> closes!
>> 
>> Better Hint:
>> *Never* copy/restore single files. Always backup the whole DATA folder.
>> (Preferably after a <Compact Database> to keep the size small.)
> 
> Thank you Bernd. This is probably the best option of all.
> How does this sound as insurance against dialog corruption?
> 
> 1. Take about an hour to set up Dialog exactly as you want it to be.
> 2. Then compact the datbase & zip the "data & Scripts" directories.
> 3. When dialog corrupts, replace the data & Scripts directories.
> 
>>  Or at
>> least always keep the latest automatic pre-Compact backup folder that
>> Dialog creates. And if need be, completely replace the corrupt DATA
>> folder by a backup of DATA. I.e.: Rename or delete the current DATA
>> and copy the backup DATA folder as new DATA. (Do not just rename the 
>> backup folder to DATA, in case you need it more than once...)
> 
> I think zipping the data backup should "protect" it enough so that it can
> be re-used.
>  
>>> C. It's handy to have a process-killing app ready for when 40Tude Dialog
>>> hangs.
>> 
>> Windows Task Manager (<Ctrl+Shift+Esc>) should do. One should keep in
>> mind, though, that every killing may result in a corrupted database.
> 
> I understand. Dialog seems to write "something" to a few files when it
> closes, so when it doesn't close gracefully, those files seem to get
> corrupted.

The way I do it is to set up CloneZilla on a separate bootable 
partition of an external USB drive, then set up several partitions (of 
the same exact size as the internal drive) on that external USB drive.

Once a week, I clone the internal drive to one of the partitions on 
the external USB drive, overwriting the oldest clone. In this way, I 
have multiple backups, and the most I have to roll back is only a 
week.

If Dialog crashes so hard it corrupts the database, all I have to do 
is shut down Dialog, open Explorer, copy the latest clone of the 
Dialog directories over to the same place on the internal drive, start 
up Dialog again, and re-download all the messages for the past week.

It takes less than 5 minutes to get back up and running (it'd take a 
bit less if I scripted it, I suppose), and if absolutely need be (if 
the internal drive crashes), I can selectively boot from one of those 
cloned partitions and continue working until I get the internal drive 
replaced.
Technical Details
Message-ID: <9f3a4e81d9576915c368851893eb1503@dizum.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail
References: <oc20ro$i7j$1@gioia.aioe.org> <jsgz0z2oen96.dlg@b.rose.tmpbox.news.arcor.de> <oc4bl0$phu$1@gioia.aioe.org>

Show Full Headers
Complete Article Headers
Message-ID: <9f3a4e81d9576915c368851893eb1503@dizum.com>
Subject: Re: How to recover from Windows 40Tude Dialog data corruption
Date: Thu, 06 Apr 2017 03:22:04 +0000
From: "That Guy... You Know, The Guy With The Thing. No, The Other Guy. Yeah, Him." <JeremyHellman@gmail.com>
References: <oc20ro$i7j$1@gioia.aioe.org> <jsgz0z2oen96.dlg@b.rose.tmpbox.news.arcor.de> <oc4bl0$phu$1@gioia.aioe.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail
Newsgroups: news.software.readers
Organization: dizum.com - The Internet Problem Provider
X-Abuse: abuse@dizum.com
Injection-Info: sewer.dizum.com - 194.109.206.211
X-Received-Body-CRC: 3977524793
X-Received-Bytes: 10046