eXist-db / exist

eXist Native XML Database and Application Platform
https://exist-db.org
GNU Lesser General Public License v2.1
428 stars 179 forks source link

[BUG] org.exist.storage.DataBackup parameters #5176

Open kheitmann opened 10 months ago

kheitmann commented 10 months ago

Describe the bug

I cannot see how these parameters prefix and zip-files-max for org.exist.storage.DataBackup as a job actually are recognized.

<job type="system" name="databackup" class="org.exist.storage.DataBackup" period="120000">
  <parameter name="output-dir" value="backup"/>
  <parameter name="suffix" value=".zip"/>
  <parameter name="prefix" value="backup-"/>
  <parameter name="collection" value="/db"/>
  <parameter name="user" value="admin"/>
  <parameter name="password"/>
  <parameter name="zip-files-max" value="28"/>
</job>

Expected behavior parameters prefix should be used as a prefix for backup files, and zip-files-max shall cause the deletion of zip files older than zip-files-max generations. Do I have the wrong assumptions?

line-o commented 9 months ago

Hello @kheitmann! On which version of exist-db did you see the issues?

kheitmann commented 9 months ago

Hi @line-o on 6.2.0. Thanks. I don't see even anything in the source code of org.exist.storage.DataBackup but that may be me overlooking details.