What to do if you haven’t backed-up Delicious Library 2

I’ve had some issues with my Mac and had to do a reinstall of Mavericks this weekend, thanks to Khan at the Chadstone Apple Store who was extremely helpful.

I’d backed-up my hard drive before I went, to conserve my happy data, and decided not to restore anything, just to manually move files from the backup I’d taken.

This was a decision I took to avoid importing anything that might have been interfering with the computer; I’d installed and removed a lot of software in my quest to find alternatives to iTunes and iPhoto in the preceding couple of months and it just seemed simpler to do things this way.

Also, because I’d taken great pains to get off of proprietary file formats and have most of my files in the cloud using Google Drive, Dropbox and Ubuntu 1, I didn’t have that much to shift.

However, one thing I didn’t do was export my Delicious Library 2 database.

What’s Delicious Library 2?

So, what’s this great application of which I speak? It’s an inventory of DVD’s, CD’s and hardware that I have. Delicious Library 2 cost me just over $10 on the Apple App Store. Version 3 is also available, but I wasn’t in that financial bracket at the time. I decided on this method of recording my stuff for a couple of reasons:

  1. I’ve lent things out in the past and never got them back
  2. I want to keep a track of things I’ve lent out
  3. I’d like an inventory of my movies, DVDs, books, software and hardware. It’s useful for insurance purposes and to feel important!
  4. I’m getting myself organised; Google calendar keeps me straight in the outside world, Google Drive keeps my writing straight, and other software (VLC for audio/video, and Photoscape X for photos) keeps media straight. Why not my physical stuff too?

I spent about 4 hours scanning and putting my stuff into the system a couple of weeks ago, added peeps who I’d lent things to, and have now got a handle on who has what.

Couldn’t I just restore from the export I did?

Delicious Library likes you to export and import things using its system which I totally forgot to do.

But there is a workaround if you need to transfer to another machine, or from one that’s been fragged due to a dodgy OS, Hard drive or other hardware.

Before you begin

The first thing you need is a backup. From here all things flow. If you have no backup, you’re doomed. If you have one, proceed!

Also, this set of steps presupposes you have Delicious Library 2 installed, that’s it’s a licensed copy (as unlicensed ones limit the items you can add), and you have already created a blank library. You can create a blank library by firing-up the application and telling it to create a library.

Before you attempt this task, make sure anything you’re doing in the Finder, such as copying files, is complete. Performing these steps will force-quit the finder, which means it’ll restart and dump whatever you had it doing.

First, find the files

On your backup drive, you’ll find the Delicious Library data files in:

[Your User] > Library > Containers > Com.Delicious-Monster.Library2

Two items will be there:

Container.plist
Data
delicious-library

Second, make sure you can see the folder on your new install

On Mac’s über new operating-system, Mavericks, I couldn’t find the aforementioned folder. This necessitated some mucking-around in the Terminal window.

The Terminal window allows you to use the Unix command-line.

You can get to it through the search at the top right, by typing Terminal at the prompt.

Then once the black window arrives, and you have a prompt, type in:

defaults write com.apple.finder AppleShowAllFiles 1 && killall Finder

Then press enter.

The Finder will start-up once again, and the folder will be available. Also available will be every single hidden file.

DO NOT DELETE ANY OF THEM! 

Seriously, hidden files are that way for a reason: they’re needed for the smooth operation of the system. We’ll hide them once again at the end of this procedure. In the meantime, as already noted: Don’t Delete Anything!

Next, copy the files

If you’ve got an existing library, please note you’ll lose it if you perform this task. I’m assuming you did what I did and fired-up Delicious Library, and told it to create a blank library.

If you’ve added things to the new library and perform this task, you’ll overwrite the work. BE WARNED!

I find opening a new Finder window best for doing things like this.

One Finder window has the backup, one has the new folder.

Remember, you’re looking for:

[Your User] > Library > Containers > Com.Delicious-Monster.Library2

From the backup folder, drag and drop the two files to the new folder. The files are:

Container.plist
Data

When prompted, choose Overwrite.

Penultimately, fire-up Delicious Library

When you fire-up Delicious Library 2, the application will click and whir for a few moments as it re-integrates the new files into its system. It’ll take a couple of minutes.

But once done, if all goes well, you’ll have your library back.

Finally, back to the Terminal to turn off Show All

There are lots and lots of hidden files and folders on a Mac (as with any computer operating system). You don’t need to see them at all times, and, frankly, unless you know what you’re doing, it’s best not to muck around with them.

The best thing to do now is to reverse the Show All.

So, in your Terminal Window, type the following:

defaults write com.apple.finder AppleShowAllFiles 0 && killall Finder

Finder will restart, and the hidden files will be gone again.

At this point you can close the Terminal Window and now worry about it anymore.

In conclusion

As long as you have a backup, you can do most things if-not easily, then perhaps with a little grunt-work. In their absence, you’re in serious strife.

The take-home message for today:

Always Make Frequent Backups

Now make yourself a cuppa to celebrate.

Author: gotheek

Sometime writer, full time human.