Backing up

Need help? Ask your questions here! I'll try to answer every one, but anyone can answer!
Post Reply
Razor
Posts: 9
Joined: Sat Jul 14, 2012 10:56 am

Backing up

Post by Razor »

What's the proper way to backup kjams databases? I've spent hours importing songs and making sure that artists and titles are entered properly. Makes me really nervous to lose all that work. How can I backup the database? Does the kjams folder contain all kjams settings? Any other folders I should backup?

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

Re: Backing up

Post by dave »

time machine is the best way.

the thing you need to back up is the "kJams" folder (in the Music folder, in your User folder)

for the other folders you can back up, see here:
http://karaoke.kjams.com/wiki/Cloning

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

Re: Backing up

Post by DeusExMachina »

I wrote a script that automatically backs up the library and venues (plus some other stuff) when you launch kJams. I can post the code if you want.

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

Re: Backing up

Post by dave »

sure, put it up in the Code section of the web site even :)

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

Re: Backing up

Post by DeusExMachina »

The only caveat is that, because AppleScript does not hand off control of each command until the previous one is successful, it currently is very slow for large libraries/venues, since you have to wait for the copy to finish before launching kJams.
Currently, my kJams Launcher script does the following:
Save Exposé settings (screen corners and keyboard shortcuts) and then turn of Exposé and Spaces. (Deprecated since kJams now handles this more gracefully.)
Launches Quicktime in anticipation of screen underlays.
Sets outgoing messages in Adium to appropriate karaoke messages.
sets up system audio recording and playback
resets settings on quit.
Last edited by DeusExMachina on Fri Jul 27, 2012 5:25 pm, edited 1 time in total.

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

Re: Backing up

Post by dave »

mrrrph

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

Re: Backing up

Post by DeusExMachina »

Well, I may be able to address some of that with a python or BASH script.

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

Re: Backing up

Post by dave »

i really should have kjams make a backup of your library when saving

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

Re: Backing up

Post by DeusExMachina »

What about Lion-esque versioning?

(And don't forget venues and such.)

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

Re: Backing up

Post by dave »

right, lion's versioning is document based. kJams's database is more "bundle" based, i have to back up the whole "kJams Library" folder.

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

Re: Backing up

Post by DeusExMachina »

Well, considering the size involved, it might be better to compress it, too. :)

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

Re: Backing up

Post by dave »

that's the idea

Post Reply