Author Topic: Automated save backups  (Read 270 times)

0 Members and 1 Guest are viewing this topic.

Offline drunkenmonkey

  • 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: 1115
  • Thanked: 105 times
Re: Automated save backups
« Reply #1 on: May 20, 2019, 01:02:48 PM »
Thanks!

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 Luken

  • Administrator
  • Admiral of the Fleet
  • *****
  • Posts: 5235
  • Thanked: 132 times
  • Forum Admin
  • Discord Username: icehawke
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

  • 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

  • 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!
 

 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55