Duplicati-verification.json without update after COMPACT command

THX for All help

May be some flaw on COMPACT command

Version: - 2.0.6.3_beta_2021-06-17

Step to reproduce issue

  1. remove duplicati-verification.json on backup storage.
  2. Force COMPACT with “–small-file-max-count=1”
    i.e.
    Duplicati.CommandLine.exe compact “file://E:\PC_Backup” --small-file-max-count=1 --no-encryption=true --dbpath=“c:\Duplicati_DB\ORDJTXXWKM.sqlite”

Furthermore, i suggest prompt error when --small-file-max-count<1

Not reproducible with a similar test (but I included –upload-verification-file so I could look at new file).
What exactly does “without update” mean? No file (if so, ask for it)? Mangled file? A tool complains?
What Duplicati version? I know of a tool and a mangling fix if that’s what you see. What do you see?

My test was backup of a short text file, edit the file, backup, delete duplicati-verification.json, and run

“C:\ProgramData\Duplicati\duplicati-2.0.6.104_canary_2022-06-15\Duplicati.CommandLine.exe” compact “file://C:\ProgramData\Duplicati\duplicati-2.0.6.104_canary_2022-06-15\RUN\test 1\” --small-file-max-count=1 --no-encryption=true --dbpath=“C:\ProgramData\Duplicati\duplicati-2.0.6.104_canary_2022-06-15\RUN\MJNTGMLXBD.sqlite” --upload-verification-file=true

duplicati-verification.json appears, and contains

[{“ID”:1,“Name”:“duplicati-20221127T203900Z.dlist.zip”,“Hash”:“Fa/pbEsdETvjk8hTdVwBy9XitEFx9Kg5Uign1Gvsn48=”,“Size”:648,“Type”:1,“State”:3,“DeleteGracePeriod”:“0001-01-01T00:00:00Z”},{“ID”:3,“Name”:“duplicati-b09c3179095df43ffafc0ef1bb6703eb1.dblock.zip”,“Hash”:null,“Size”:-1,“Type”:0,“State”:5,“DeleteGracePeriod”:“0001-01-01T00:02:46.9589152Z”},{“ID”:4,“Name”:“duplicati-ib0e5a1e3a38a4c7990e80bcc0a2b5c9c.dindex.zip”,“Hash”:null,“Size”:-1,“Type”:2,“State”:5,“DeleteGracePeriod”:“0001-01-01T00:02:46.9589152Z”},{“ID”:5,“Name”:“duplicati-20221127T204013Z.dlist.zip”,“Hash”:“NpzbUcCLQrV/+miv1HjIK0YdFfFXoLiwkVLkoghMVQ4=”,“Size”:647,“Type”:1,“State”:3,“DeleteGracePeriod”:“0001-01-01T00:00:00Z”},{“ID”:6,“Name”:“duplicati-bfd0b67e5cb5c44ff93212d73c1e47fbe.dblock.zip”,“Hash”:null,“Size”:-1,“Type”:0,“State”:5,“DeleteGracePeriod”:“0001-01-01T00:02:46.9589152Z”},{“ID”:7,“Name”:“duplicati-i07dae7a2253f40ce8d2775cb8d7e3e50.dindex.zip”,“Hash”:null,“Size”:-1,“Type”:2,“State”:5,“DeleteGracePeriod”:“0001-01-01T00:02:46.9589152Z”},{“ID”:8,“Name”:“duplicati-bad3429c71d48462b96a9e9d72850486d.dblock.zip”,“Hash”:“/0blf0wQ8tLnfdn9zm8LbOtMe3yl7Agh4pRZZfLDTzw=”,“Size”:1260,“Type”:0,“State”:2,“DeleteGracePeriod”:“0001-01-01T00:00:00Z”},{“ID”:9,“Name”:“duplicati-i609438947c4c4c34bb8dadd00796fdb8.dindex.zip”,“Hash”:“gWD42MVkXY3PC+Tk17vYrnBDN915O3P9vuq5NPBM9SM=”,“Size”:689,“Type”:2,“State”:2,“DeleteGracePeriod”:“0001-01-01T00:00:00Z”}]

THX for your help. I missing “–upload-verification-file” on COMPACT command. :sweat_smile:

1 Like

You couldn’t have hit it with your steps (thanks to the delete), but local folder destination needs the fix:

Make File backend truncate existing files when overwriting #4488

otherwise a shrinking file such as compact would likely make can have leftovers of old version at end.

2.0.6.100_canary_2021-08-11

File backend now overwrites files, thanks @warwickmm

which unfortunately puts you on the Canary channel (initial test version) until the next Beta comes out.
No forecast on the date. There is a severe lack of volunteers at the moment in code and release area.
Duplicati only exists and improves thanks to volunteers in a variety of areas. They are few these days.