STAR TREK 2d20
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
    20,805
    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 00:16.
    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 https://www.fantasygrounds.com/featu...rerequests.php

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

  4. #4
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,678
    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....

  5. #5
    KILLGORE's Avatar
    Join Date
    Mar 2016
    Location
    Connecticut, USA
    Posts
    173
    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 19:16.

  6. #6
    Zacchaeus's Avatar
    Join Date
    Dec 2014
    Location
    Scotland
    Posts
    20,805
    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 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 https://www.fantasygrounds.com/featu...rerequests.php

  7. #7
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,404
    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.
    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
    173
    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
    26,678
    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.

  10. #10
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    -7 UTC
    Posts
    17,244
    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?

    Problems? See; How to Report Issues, Bugs & Problems
    On Licensing & Distributing Community Content
    Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets, Balance Disturbed, Dungeon Room Descriptions
    Note, I am not a SmiteWorks employee or representative, I'm just a user like you.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
5E Product Walkthrough Playlist

Log in

Log in