I'm in the process of committing store backup/restore to
bongo-storetool, which is pretty close to useful now. The basic process
is this:

Backup:

 $ bongo-storetool -u admin -s <store> sb <filename>

The store defaults to the store for the user you're accessing the store
as, and the filename defaults to '<store>.backup'. 

Restore:

 $ bongo-storetool -u admin -s <store> sr <filename>

Same as above.

'sb' and 'sr' are short-hand for 'store-backup' and 'store-restore'
respectively.

This backup/restore process should save everything in a user's account,
and if you point it at the _system store, you can also backup/restore
your Bongo system configuration (I will, at some point soon, make the
backup/restore in Hawkeye work with the same bits as here). I would be
grateful if people who try using it report problems to me.

For those who are wondering, this is supposed to be a pax-format backup
file. Somewhat amusingly, my pax utility won't recognise the files, but
tar will. However, if you repack with tar, you will _lose_ data - we
hold metadata in special pax records, and tar will lose those when it
unpacks the data. However, you can update the contents of the backup by
freshening files rather than rebuilding the entire file (in theory).

Changes in the on-disk format
-----------------------------

Very soon, I'm going to be committing changes to bongostore which will
change the way it saves information on disk in two ways. The SQLite
database used in stores will change lightly, and the mbox support will
be removed for something more like maildir, for technical reasons.

During this time, upgrades to new versions of Bongo may not work - if
the format has changed between the old version and the new, then strange
and unpredictable things may happen. 

I don't intend to support upgrades in any way at this point, so the only
way of doing it will be starting with a fresh store at each point -
however, with decent working backup/restore this shouldn't be terribly
painful, and indeed gives you better chances of rolling back to a
previous version.

I'll post an all-clear once these changes have gone through, which will
probably be the next 0.2.9x release anyway. Hopefully I can get it done
relatively quickly.

Cheers,

Alex.


_______________________________________________
Bongo-users mailing list
[email protected]
https://mail.gna.org/listinfo/bongo-users

Reply via email to