Thanks for all the pointers! Good news: It’s now possible to add comments to database backups [1,2].
Feedback is welcome. Christian [1] https://github.com/BaseXdb/basex/issues/2084 [2] https://files.basex.org/releases/latest/ On Wed, Mar 30, 2022 at 6:40 PM Majewski, Steven Dennis (sdm7g) <[email protected]> wrote: > > It’s in ZipFile.getComment() > > https://docs.oracle.com/javase/8/docs/api/java/util/zip/ZipFile.html#getComment-- > > — Steve M. > > On Mar 30, 2022, at 12:17 PM, Christian Grün <[email protected]> > wrote: > > I'm wondering if zip's `setComment` might be useful here. > > > Interesting hint. > > I have discovered the ZipOutputStream.setComment function. There > doesn’t seem to be an equivalent ZipInputStream.getComment function, > though. Maybe I overlooked something? > > > > On Wed, Mar 30, 2022 at 1:44 PM Christian Grün > <[email protected]> wrote: > > > Hi Jonathan, > > Currently, it’s not possible to attach comments to backups. I’ll have > some more thoughts on your feature request. Maybe we could add an info > file in the zipped archive and partially unzip it when listing > available backups. > > All the best, > Christian > > > On Wed, Mar 30, 2022 at 12:26 AM Jonathan Robie > <[email protected]> wrote: > > > I have been making backups before doing particularly complex things to my > treebanks, and I find myself writing down information about what stage of > processing a given backup corresponds to. > > "after replacing subtrees for missing compounds" > > I wish I could associate these strings with backups in BaseX so I can more > easily know which one I would restore if something went wrong. > > Jonathan > >

