Author Topic: Automated save backups  (Read 7394 times)

0 Members and 1 Guest are viewing this topic.

Offline drunkenmonkey (OP)

  • Able Ordinary Rate
  • d
  • Posts: 3
Automated save backups
« on: May 19, 2019, 10:22:51 PM »
Hey guys, new player here.   Because I'm a nervous newb, I wanted to be able to save my game periodically without having to actually leave the game.   I have some batch scripting skills, so I put them to work for a few hours and came up with something that can periodically (e. g.  every 5 minutes) back up my database files for me without disturbing me or the game.   

If anyone is interested in trying it out I'd be happy to share my work.   Feedback, including "this seems unnecessary, nervous newb" is welcome.

Offline Father Tim

  • Vice Admiral
  • **********
  • Posts: 2162
  • Thanked: 531 times
Re: Automated save backups
« Reply #1 on: May 20, 2019, 01:02:48 PM »

You are not the first to build such a thing, but I don't remember where to find any of the older ones.  I suspect most of us use a more manual backup system of 'make a copy of the db every hour or so if I remember, or at the beginning of each play session, or whatever'.

The good news is that C# Aurora has this functionality built in, as it has been asked for so often, so when Steve releases C# Aurora late next year we'll all be set.

Offline Erik L

  • Administrator
  • Admiral of the Fleet
  • *****
  • Posts: 5654
  • Thanked: 366 times
  • Forum Admin
  • Discord Username: icehawke
  • 2020 Supporter 2020 Supporter : Donate for 2020
    2022 Supporter 2022 Supporter : Donate for 2022
    Gold Supporter Gold Supporter : Support the forums with a Gold subscription
    2021 Supporter 2021 Supporter : Donate for 2021
Re: Automated save backups
« Reply #2 on: May 20, 2019, 01:34:44 PM »
There are two utilities currently which perform backups. They are the Aurora backup utility by me, and the Aurora Wrapper by AcidWeb.

They both have subforums under Installations.

Offline drunkenmonkey (OP)

  • Able Ordinary Rate
  • d
  • Posts: 3
Re: Automated save backups
« Reply #3 on: May 20, 2019, 10:26:52 PM »
Thanks guys!  I feel a bit silly now.   Maybe there's still value in posting it?  Let me know.   The things that it does are:
1) Uses shadow copy to avoid interfering with Aurora running.
2) Makes two copies and compares them to ensure consistency - if Aurora was writing to the file(s) it starts the process over again to ensure a good backup.
3) Compresses the backups.   With my new game I'm getting about 90% compression with 7-Zip (25MB file goes to 2. 5MB).
4) Date/Time naming scheme means the files are always unique and sortable.   
5) Generically written, so can be used to capture just the main Stevefire. mdb, all Stevefire. mdb. X files too from the wrapper, or other things (e. g.  use it for something other than Aurora if you like).
6) Configurable parameters, including the timer and the backup location, and can turn off each of these options (shadow copy, compression) based on preference.

The one thing it does not currently do is manage old backups, e. g.  the revolving backup scheme done by the wrapper.   Compression means you can keep a lot of them around, so far I don't see a strong need to delete them.   Thoughts?

Offline drunkenmonkey (OP)

  • Able Ordinary Rate
  • d
  • Posts: 3
Re: Automated save backups
« Reply #4 on: May 22, 2019, 10:46:01 PM »
Well, since no one has asked for it, I'll just continue using it myself.   If anyone is interested feel free to send me a note!