DatabaseScripts (v0.2)

About:
DatabaseScripts is a collection of scripts for general manipulation of the amarok collection database. Currently, there are two scripts in the bundle.

Backup Collection:
Specify the target directory in the configuration dialog, and the database will be copied to the specified directory. This will work for SQLite or MySQL database backends. If you are interested in extending this to support Postgresql, it would be appreciated!

The backup will be saved as collection.db.date for sqlite, or amarokdb.mysql.date with mysql databases.

Note: For mysql users, it is necessary to give the database user all database action permissions. This is required for mysqldump. This can be achieved by issuing the following command:

> $> mysql -u root -p
> mysql> GRANT ALL ON amarokdb.* TO amarok@localhost IDENTIFIED BY 'xxxx';

Optimise Database:
This script will remove all entries in the database which do not exist in the filesystem.

Warning: Just to say I told you so, please use the Backup Collection script prior to executing this script.

Notes:
If you would like to write any additional scripts, or have any suggestions, please email them to me so i can include them in the release!

Dependencies:

- Amarok 1.3.1
- Ruby 1.8
- Korundum Ruby/Qt bindings

License:
GNU General Public License V2

Author:
Seb Ruiz (me@sebruiz.net)