Newsbin.nbi.bak

Technical support and discussion of Newsbin Version 6 series.

Newsbin.nbi.bak

Postby nbwul62 » Tue Jul 05, 2022 2:06 am

Just out of curiosity...

I noticed in the titlebar Newsbin that it was using Newsbin.nbi.bak.
After exiting Newsbin, I also noticed that files like
newsbin.nbi.bak
newsbin.nbi.bak.bak
newsbin.nbi.bak.old
were updated.

Newsbin works fine, that is not the issue.

But just curious why the existing newsbin.nbi file seems not to be used(?)

Image
nbwul62
Seasoned User
Seasoned User
 
Posts: 369
Joined: Mon Mar 03, 2003 2:44 pm

Registered Newsbin User since: 05/18/03

Re: Newsbin.nbi.bak

Postby Quade » Wed Jul 06, 2022 9:55 am

Newsbin makes backup copies of the NBI file which you can see there. At some time in the past, the bak file became the main NBI file.

You can see from the file dates about when this happened.

I'd make copies of all of them. Then rename Newsbin.nbi.bak to "Newsbin.nbi" then double-click it to start Newsbin with this NBI. If it's not the latest they you might want to poke around the copies and look for the latest one and try them.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 45009
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: Newsbin.nbi.bak

Postby nbwul62 » Thu Jul 07, 2022 10:00 am

Thank you.
Did as recommended. All went fine, of course I would say.


A totally unimportant detail being that that besides
Newbin.nbi
also Newsbin.nbi.bak is created (which is as expected)
but .. also newsbin.nbi.old.

Anyway, as said, unimportant.

Thanks again.
nbwul62
Seasoned User
Seasoned User
 
Posts: 369
Joined: Mon Mar 03, 2003 2:44 pm

Registered Newsbin User since: 05/18/03

Re: Newsbin.nbi.bak

Postby Quade » Thu Jul 07, 2022 4:16 pm

1 - It renames ".bak" to ".old".
2 - It copies ".nbi" to ".bak
3 - It writes out the new NBI.

The reason it works this way is if power was cut or Newsbin killed half way through writing the NBI, you'll end up with a zero length file.

Since I implemented this, the reports of lost NBI's have become far less frequent.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 45009
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97


Return to V6 Technical Support

Who is online

Users browsing this forum: No registered users and 21 guests