Author Topic: Having an issue with backing up/restoring the .bin files  (Read 1734 times)

0 Members and 1 Guest are viewing this topic.

Wolfie

  • Padawan
  • **
  • Posts: 64
  • Karma: +0/-2
    • View Profile
  • Twitch Name: Wolfie713
Having an issue with backing up/restoring the .bin files
« on: October 15, 2015, 02:53:17 PM »
Streamer is using a new computer, she zipped up the three bin files and from what I can tell, everything is fine.  However, after trying to test it, the bot seems to want to reset everything.  Here's how things have played out.

She compressed the three files and sent that to me.  I did a fresh install of DeepBot on another computer of mine, launched and then exited.  After that, I extracted the three .bin files to the 'data' folder.  I launched DeepBot and it's got her information there (well except the streamer's OAuth).  I change the stream name and bot name and OAuth it using my bot's account.  I did this so I could make sure the commands are loading properly.  The commands aren't there and when viewing the users, the points are all wrong.  When I exit Deepbot, the files are updated and a big difference is that the users file goes from roughly 3mb down to 400kb.

Short of backing up the entire DeepBot folder (and all the files/folders within it), how can we restore the data files so that everything is restored?

Mitch

  • Master
  • ****
  • Posts: 401
  • Karma: +24/-1
  • Took me 20 minutes to change this...
    • View Profile
  • Twitch Name: Mitch619911
Re: Having an issue with backing up/restoring the .bin files
« Reply #1 on: October 15, 2015, 03:53:04 PM »
Well you needed to move the data folder.
Moving the files around not knowing what one is what is a bit bad due to some files can get corrupt or you can mess up that file.
I/we recommend to just move the data folder over to new PC, if you don't know how to/what to do, i/we are move then happy to login to your computer and help you.
:)

Wolfie

  • Padawan
  • **
  • Posts: 64
  • Karma: +0/-2
    • View Profile
  • Twitch Name: Wolfie713
Re: Having an issue with backing up/restoring the .bin files
« Reply #2 on: October 15, 2015, 10:22:26 PM »
I have a pretty good idea of what the three files are for.  They aren't corrupt, otherwise I would have been notified of such when extracting the files.  (Unless they are corrupt on the original computer at which point there's a bigger problem.)  They are being restored to the same location while the bot is not running.  I'm quite familiar with how to move/delete/archive/etc files as I've been fiddling with computers since I was a teenager many moons ago.  Even dealt with programming and scripting (been using mIRC to make another bot and working on it to get it to overcome Twitch's bad IRC behavior) not to mention other forms of computer experience.  Not saying that in a defensive way, just letting you know that I'm not some noob.  At the same time, I have no problem in asking for assistance because there's no shame in doing so.

One thing that occurred to me after making the initial post and I've tested something out - is that the DeepBot.s3 file seems to be unique per install.  Is that likely the reason for the issues?  Since the streamer isn't tech savvy, her explorer settings aren't such that she can see extensions nor hidden files and that file wasn't showing in her list.

I've already sent her a message to archive the entire folder (not just the files inside).  Might not hurt to have an option within DeepBot to archive all the necessary files.  Not only for transferring to a new computer, but for backup purposes too.  Somewhere like maybe the 'about' page since it wouldn't be necessary to use it too often.  Of course, restoring files should be up to the person running the bot, since restoring files shouldn't be too common and would otherwise be bloat inside the programming.

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Having an issue with backing up/restoring the .bin files
« Reply #3 on: October 16, 2015, 12:52:21 AM »
Try right clicking the files > Unblock if it is an option and if there is a security tab, go there and give each "User" the option of "Full Control".
Old Name: RepentGamingTV
Twitch: Here

Need help ASAP?
Join Deepbot's Discord: Discord.Deepbot.tv
Deepbot's Twitter: @DeepSupport

Wolfie

  • Padawan
  • **
  • Posts: 64
  • Karma: +0/-2
    • View Profile
  • Twitch Name: Wolfie713
Re: Having an issue with backing up/restoring the .bin files
« Reply #4 on: October 16, 2015, 02:26:57 AM »
Same thing is still happening.  I've even gone through the trouble of making sure that the owner of the root DeepBot folder (and all folders/files) is the same as the user account and has full control.  (Did the unblock thing too as you mentioned.)

The last time I checked, she was using 0.8.1.0 when it was all working, so I know it's not a version difference causing the issue.  Does the .s3 file have any bearing on the .bin files or is that completely separate (and for donations only)?

I used notepad to drag-n-drop one of the files to view it (didn't edit nor save the file back) and it has the data that I'm familiar with, it's just for some reason, it's completely ignored.  This has me wondering if the sign-in data (bot name/OAuth and/or the streamer name/OAuth) is having any affect on it.

I suppose a question to ask is this..  Should the three .bin files be usable as they are, regardless of the bot/streamer accounts and without any other files having an impact?  If there's anything in addition to those three files that makes a difference, then I need to know what so I can ensure she has the bot ready to go by the next stream (or could miss a day but prefer to get it working ASAP).