how to create sql backup of h2 database BuddyList 2.0
Posted: 22 May 2008, 16:23
I need to create a backup of the tables specific to the buddylists.
I have already created a custom persister for the AbstractBuddyList as part of our migration from h2 to mysql.
Through talking to Lapo I know that the buddylists use the following table structure:
CREATE TABLE <TableName>
( OWNER VARCHAR(255) NOT NULL, NAMES_LIST LONGVARCHAR, BLOCK_LIST LONGVARCHAR, VAR_KEYS LONGVARCHAR, VAR_VALUES LONGVARCHAR )
I have implemented the exact same structure in mysql and created a custom persister which works fine.
We are currently restricted to working via the command line when talking to the h2 engine as the h2 console tool will only work when requested locally.
This means that I am having difficulty finding a way to determine the buddylist database name and buddylist table within mentioned database in order to formulate the required sql to create a backup.
Does anyone know a way around this. The reason I ask is that I have avery limited timespan to get this working as we are having problems with our existing set up and need to do a complete reinstall of smartfoxserver ASAP as our site has ground to a halt and it is affecting our existing users.
best
I have already created a custom persister for the AbstractBuddyList as part of our migration from h2 to mysql.
Through talking to Lapo I know that the buddylists use the following table structure:
CREATE TABLE <TableName>
( OWNER VARCHAR(255) NOT NULL, NAMES_LIST LONGVARCHAR, BLOCK_LIST LONGVARCHAR, VAR_KEYS LONGVARCHAR, VAR_VALUES LONGVARCHAR )
I have implemented the exact same structure in mysql and created a custom persister which works fine.
We are currently restricted to working via the command line when talking to the h2 engine as the h2 console tool will only work when requested locally.
This means that I am having difficulty finding a way to determine the buddylist database name and buddylist table within mentioned database in order to formulate the required sql to create a backup.
Does anyone know a way around this. The reason I ask is that I have avery limited timespan to get this working as we are having problems with our existing set up and need to do a complete reinstall of smartfoxserver ASAP as our site has ground to a halt and it is affecting our existing users.
best