Here is a quick hack to backup the essential bits of the picasa
database. I run it nightly, or more often if I am in heavy editing
mode. I haven't had any issues with 3.6 except for a freeze or two,
but you can't be too safe once you have a hundred hours into
something. For 30K pictures this creates a tar.gz archive around 1 Gb,
although the unpredictable nature of the picasa db compaction results
in some variability.
If you untar the backup into the right directory, you will get the
exact picasa db and albums from the time of the backup.
<code>
#! /bin/csh
set date = ( `date +%Y.%m.%d` )
set file = ( /home/$USER/picasa_backup.`date +%Y.%m.%d`.tar.gz )
cd /home/$USER/.google/picasa/3.0/drive_c/Documents\ and\ Settings/
$USER/Local\ Settings/Application\ Data/
pwd
set c = ( tar czf $file ./Google )
echo $c ; $c
</code>
You can delete the contents of the db3 directory, start picasa and
have it regenerate the database, and all edits will be preserved. This
is useful if you screw up your db like I did with an inadvertent soft
link (the pictures are duplicated but the path in the db is the actual
path, not the path with the soft link).
This implies that if you back up the images themselves with a way to
restore paths, and backup the album xml files, you are covered.
#!/bin/bash
# picasa_backup.sh
date=$(date +%Y.%m.%d)
file="/home/$USER/picasa_backup.$date.tar.gz"
cd /home/$USER/.google/picasa/3.0/drive_c/Documents\ and\
Settings/$USER/Local\ Settings/Application\ Data/
pwd
tar czf $file Google
echo $file
bash : csh :: emacs : vi !
Which may be ambiguous, so to be clear what I mean is that vi rocks,
emacs sux, csh rocks, bash sux.
> > For more options, visit this group athttp://groups.google.com/group/google-labs-picasa-for-linux?hl=en.