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
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@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
I'm wondering if zip's `setComment` might be useful here.
On Wed, Mar 30, 2022 at 1:44 PM Christian Grün christian.gruen@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@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
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@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@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
It’s in ZipFile.getComment()
https://docs.oracle.com/javase/8/docs/api/java/util/zip/ZipFile.html#getComm... 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@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@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@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
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@virginia.edu wrote:
It’s in ZipFile.getComment()
https://docs.oracle.com/javase/8/docs/api/java/util/zip/ZipFile.html#getComm...
— Steve M.
On Mar 30, 2022, at 12:17 PM, Christian Grün christian.gruen@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@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@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
Excellent! Thanks!
Jonathan
On Thu, Mar 31, 2022 at 7:27 AM Christian Grün christian.gruen@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@virginia.edu wrote:
It’s in ZipFile.getComment()
https://docs.oracle.com/javase/8/docs/api/java/util/zip/ZipFile.html#getComm...
— Steve M.
On Mar 30, 2022, at 12:17 PM, Christian Grün christian.gruen@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@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@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
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@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
Awesome, thanks!
And yes, adding comments to a backup is very helpful for me.
Jonathan
On Fri, May 13, 2022, 05:56 Christian Grün christian.gruen@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@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
basex-talk@mailman.uni-konstanz.de