Songs.ktd [Backups] Folder

Feel free to post bug reports here. I need exact, detailed steps showing me how I can re-create the bug on my machine, so give as much info and detail as possible.
User avatar
dave
Site Admin
Posts: 6373
Joined: Sun Sep 18, 2005 8:02 am
Location: Seattle
Contact:

Re: Songs.ktd [Backups] Folder

Post by dave » Tue Dec 08, 2015 6:52 pm

would I be correct in assuming that when you close Kjams at the end of the show - that the databases are failing to save properly?
kJams saves the database whenever something changes. so it's not necessarily "at the end of the night", but yes, it does seem to be the last save done, OR something gets mucked the NEXT time you run, right at the start. still haven't figured it out yet.

the backups thing is just a stop-gap, i hope that once i fix this bug that it will not be needed again (but i won't get rid of it, of course)

DeusExMachina
Posts: 1280
Joined: Sun Apr 20, 2008 9:57 am
Location: Pittsburgh, PA
Contact:

Re: Songs.ktd [Backups] Folder

Post by DeusExMachina » Wed Dec 09, 2015 3:26 pm

So in both the present and future cases, wouldn't two (or X) last saved backups be enough?

User avatar
dave
Site Admin
Posts: 6373
Joined: Sun Sep 18, 2005 8:02 am
Location: Seattle
Contact:

Re: Songs.ktd [Backups] Folder

Post by dave » Wed Dec 09, 2015 3:32 pm

no, because what if both of those backups are corrupted?

DeusExMachina
Posts: 1280
Joined: Sun Apr 20, 2008 9:57 am
Location: Pittsburgh, PA
Contact:

Re: Songs.ktd [Backups] Folder

Post by DeusExMachina » Wed Dec 09, 2015 3:39 pm

Well, my first question would be how would three copies of the db get corrupted (the current one and two back ups) in the current scenario? Seems only the current db file is at issue in this current scenario.
My second question would be, wouldn't there be a value x such that one skirts around the issue? If not, then a user is confronted with three equally bad choices: 1) await the inevitable destruction, since no amount of backing up will save them or 2) await the inevitable time when their HDD fills to capacity, or 3) manually delete some of the back ups to free up disk space, thus hastening #1.

User avatar
dave
Site Admin
Posts: 6373
Joined: Sun Sep 18, 2005 8:02 am
Location: Seattle
Contact:

Re: Songs.ktd [Backups] Folder

Post by dave » Wed Dec 09, 2015 4:06 pm

if the DB is corrupt, then you save again, get ANOTHER corrupt database, then your recent backup is corrupt. save again with ANOTHER corrupt one, and your last TWO backups are corrupt.

kjams prunes backups automatically, saving all of them for the past day, once a day for the past week, once a week for the past month, once a month for the past year.

i don't know what you mean by "value x"

DeusExMachina
Posts: 1280
Joined: Sun Apr 20, 2008 9:57 am
Location: Pittsburgh, PA
Contact:

Re: Songs.ktd [Backups] Folder

Post by DeusExMachina » Wed Dec 09, 2015 4:19 pm

X would equal the maximum number of backup files before the earliest one was overwritten. FIFO.

User avatar
dave
Site Admin
Posts: 6373
Joined: Sun Sep 18, 2005 8:02 am
Location: Seattle
Contact:

Re: Songs.ktd [Backups] Folder

Post by dave » Wed Dec 09, 2015 8:52 pm

well, that question is moot given the timed pruning which is now implemented

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests