Thread: How to restore from db.backup
-
February 27th, 2019, 23:24 #1
- Join Date
- Feb 2016
- Posts
- 9
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.
-
February 28th, 2019, 00:09 #2
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
-
February 28th, 2019, 00:27 #3
- Join Date
- Feb 2016
- Posts
- 9
that is a ton of help, thank you!
-
February 28th, 2019, 01:15 #4
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....
-
March 4th, 2019, 19:11 #5
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.
-
March 4th, 2019, 19:49 #6
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
-
March 4th, 2019, 19:51 #7
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!
-
March 6th, 2019, 06:25 #8
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?
-
March 6th, 2019, 06:34 #9
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.
-
March 7th, 2019, 00:21 #10
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)
Bookmarks