Add a comment to a backup?
Wednesday, 30 March 2022 · 9 messages · last reply 13 May 2022
JR
Jonathan Robie30 Mar 2022 02:26 #
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
CG
Christian Grün30 Mar 2022 13:43 #
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
Quoted text · Jonathan Robie · 10 lines
On Wed, Mar 30, 2022 at 12:26 AM Jonathan Robie <jonathan.robie at gmail.com> 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
RG
Richard Graham30 Mar 2022 18:02 #
I'm wondering if zip's
setComment might be useful here.Quoted text · Christian Grün · 24 lines
On Wed, Mar 30, 2022 at 1:44 PM Christian Grün <christian.gruen at gmail.com> 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 > <jonathan.robie at gmail.com> 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
CG
Christian Grün30 Mar 2022 18:17 #
Quoted text · Richard Graham · 1 line
> 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?
Quoted text · Richard Graham · 24 lines
> On Wed, Mar 30, 2022 at 1:44 PM Christian Grün > <christian.gruen at gmail.com> 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 > > <jonathan.robie at gmail.com> 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
MS
Majewski, Steven Dennis (sdm7g)30 Mar 2022 18:40 #
It’s in ZipFile.getComment()
https://docs.oracle.com/javase/8/docs/api/java/util/zip/ZipFile.html#getComment-- <https://docs.oracle.com/javase/8/docs/api/java/util/zip/ZipFile.html#getComment-->
— Steve M.
Quoted text · Christian Grün · 36 lines
> On Mar 30, 2022, at 12:17 PM, Christian Grün <christian.gruen at gmail.com> 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 >> <christian.gruen at gmail.com> 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 >>> <jonathan.robie at gmail.com> 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
CG
Christian Grün31 Mar 2022 13:27 #
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/
Quoted text · Steven Dennis (sdm7g) · 50 lines
On Wed, Mar 30, 2022 at 6:40 PM Majewski, Steven Dennis (sdm7g) <sdm7g at virginia.edu> 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 <christian.gruen at gmail.com> 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 > <christian.gruen at gmail.com> 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 > <jonathan.robie at gmail.com> 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 > >
JR
Jonathan Robie31 Mar 2022 17:02 #
Excellent! Thanks!
Jonathan
Quoted text · Christian Grün · 71 lines
On Thu, Mar 31, 2022 at 7:27 AM Christian Grün <christian.gruen at gmail.com> wrote: > 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) > <sdm7g at virginia.edu> 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 <christian.gruen at gmail.com> > 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 > > <christian.gruen at gmail.com> 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 > > <jonathan.robie at gmail.com> 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 > > > > >
CG
Hi Jonathan,
I hope the facility to add comments to backups has turned out to be helpful.
We have further enhanced
db:create-backup with a boolean compress flag [1]: If you use a recent version, you’ll need to update your code with the upcoming version 9.7.2 of BaseX. Nothing will change if you use the CREATE BACKUP command or the GUI.
Best,
Christian
[1] https://github.com/BaseXdb/basex/issues/2103Quoted text · Jonathan Robie · 10 lines
On Wed, Mar 30, 2022 at 12:26 AM Jonathan Robie <jonathan.robie at gmail.com> 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
JR
Jonathan Robie13 May 2022 16:37 #
Awesome, thanks!
And yes, adding comments to a backup is very helpful for me.
Jonathan
Quoted text · Christian Grün · 33 lines
On Fri, May 13, 2022, 05:56 Christian Grün <christian.gruen at gmail.com> wrote: > Hi Jonathan, > > I hope the facility to add comments to backups has turned out to be > helpful. > > We have further enhanced db:create-backup with a boolean compress flag > [1]: If you use a recent version, you’ll need to update your code with > the upcoming version 9.7.2 of BaseX. Nothing will change if you use > the CREATE BACKUP command or the GUI. > > Best, > Christian > > [1] https://github.com/BaseXdb/basex/issues/2103 > > > > On Wed, Mar 30, 2022 at 12:26 AM Jonathan Robie > <jonathan.robie at gmail.com> 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 >
Written for BaseX 9.7. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery