5E Storm Kings Thunder Playlist
Page 1 of 3 123 Last
  1. #1

    How to restore from db.backup

    This might already be answered, but I can't find it on the forums. How do you restore from a "db.backup" file? My system crashed today and dumped all my data. I have a backup but it isn't as recent as I want and I was hoping to use the db.backup xml file the system created to get a more recent copy.

  2. #2
    Zacchaeus's Avatar
    Join Date
    Dec 2014
    Location
    Scotland
    Posts
    15,949
    Hi Greg welcome to FG.

    First make a copy of the entire campaign folder. Then rename the file called db.xml to something else, then rename the backup to be db.xml. Then start FG and load the campaign.

    Having said that the backup.db file is actually a file created when you started the last session and then gets deleted if the session ends properly. If the session doesn’t end properly then when you restart FG and the file is there it gets renamed as the backup. So you db.xml should be more recent since it gets saved to every five minutes or so. Of course if that got corrupted then the backup will be the most recent complete file.
    Last edited by Zacchaeus; February 28th, 2019 at 01:16.
    If you need to contact customer support or if there is something that you would like to see in Fantasy Grounds that isn't currently part of the software or if there is something you think would improve a ruleset then add your idea here http://fgapp.idea.informer.com/

  3. #3
    that is a ton of help, thank you!

  4. #4
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    23,227
    Blog Entries
    1
    On point - dont rename the backup or session files.
    Copy the one you want to use and then rename that copy.
    If something else is going on with your system and that restored file gets crashed too you dont want to have just nuked your backup - only the copy of the backup.
    I hope that makes sense....

    MoreCore - Generic Ruleset
    --- Projects ---
    Extensions | Tutorials | MoreCore | MoreCore Themes | Call of Cthulhu | Maelstrom | FG Con

  5. #5
    KILLGORE's Avatar
    Join Date
    Mar 2016
    Location
    Connecticut, USA
    Posts
    166
    You should include a copy of this in the Users Manual as I have to google it every time it happens. I now own a PDF...

    May I ask what the session files might be used for? I have a couple campaigns with several of these files in them. Can I clean the folder up by deleting them?
    Last edited by KILLGORE; March 4th, 2019 at 20:16.

  6. #6
    Zacchaeus's Avatar
    Join Date
    Dec 2014
    Location
    Scotland
    Posts
    15,949
    Every day that you open a campaign in FG it creates a new session file. It's just another type of backup. So yes you can delete older ones since they'll probably have very little in them. But you do want to keep a few, the most recent ones date-wise or the largest ones just in case your backup file also gets corrupted.
    If you need to contact customer support or if there is something that you would like to see in Fantasy Grounds that isn't currently part of the software or if there is something you think would improve a ruleset then add your idea here http://fgapp.idea.informer.com/

  7. #7
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Newcastle, UK (for a bit)
    Posts
    28,599
    If you have any concern about having to go back to old session files, ZIP some of the files into an archive before you delete them - you'll generally get a good level of compression.

    FG Con 16 FG Online RPG Convention - Friday April 16th Sunday 18th, 2021.
    FG Con 17: October 15th 17th, 2021.

    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  8. #8
    KILLGORE's Avatar
    Join Date
    Mar 2016
    Location
    Connecticut, USA
    Posts
    166
    Could either of you explain how the program makes it backups? When I hit /save and it confirms it saved the campaign, what did it do? Whats the best way to preserve my data on there?

  9. #9
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    23,227
    Blog Entries
    1
    The game stores the db in RAM while you are playing.
    Every 5 minutes, plus when you /save, plus when you Exit cleanly - it writes that data to db.xml

    Once per day it also writes an additional backup.

    MoreCore - Generic Ruleset
    --- Projects ---
    Extensions | Tutorials | MoreCore | MoreCore Themes | Call of Cthulhu | Maelstrom | FG Con

  10. #10
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    -7 UTC
    Posts
    13,495
    Blog Entries
    9
    Quote Originally Posted by damned View Post
    Once per day it also writes an additional backup.
    Do you know if it is the first or last save of the day?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
FG Spreadshirt Swag

Log in

Log in