Backing up database
Monday, 16 April 2012 · 2 messages
SV
Sony Vijay16 Apr 2012 22:21 #
Hi,
I am trying to maintain a daily backup of all the XML files stored in the database. When I run CREATE BACKUP *, zipped backups of all the databases are created. I unzipped these archives and noticed that the files inside are stored in an internal basex format. Please see an example archive attached. Will I be able to restore these archives to original state if I upgrade to a newer version of BaseX? Will the files in the internal format be compatible with newer versions? If not, is there an alternative way of creating backups? Or, do you suggest I write an XQuery to create timestamped versions of files?
Thanks,
Sony
CG
Christian Grün16 Apr 2012 22:30 #
Dear Sony,
for quite some time now (since 5.7?), our storage has remained backward compatible, which means you can always import old databases with newer versions of BaseX, and optionally run the OPTIMIZE command to update the internal meta and index structures.
At some time in future (BaseX 8 or 9), we will completely rebuild the storage of BaseX to lift some current limitations (limited number of namespaces, etc). If this happen, be sure we'll either offer a converter or at least give you some feedback how to update your old backups.
In all cases, you will be able to EXPORT your database with an old version and create a new database from the resulting directory with the latest release.
All the best,
Christian
Quoted text · Sony Vijay · 23 lines
On Mon, Apr 16, 2012 at 8:21 PM, Sony Vijay <sony.vibh at gmail.com> wrote: > Hi, > > I am trying to maintain a daily backup of all the XML files stored in the > database. When I run CREATE BACKUP *, zipped backups of all the databases > are created. I unzipped these archives and noticed that the files inside are > stored in an internal basex format. Please see an example archive attached. > Will I be able to restore these archives to original state if I upgrade to a > newer version of BaseX? Will the files in the internal format be compatible > with newer versions? If not, is there an alternative way of creating > backups? Or, do you suggest I write an XQuery to create timestamped versions > of files? > > Thanks, > Sony > > > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
Written for BaseX 7.2. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery