Go on with a backup when the destination marker cannot be checked (closes #389)
check / check (push) Canceled after 0s

A source host whose credentials allow only PUT, which the documents
say is enough to back up, failed every backup after its first: the
marker check looks the marker up with an S3 HEAD, which those
credentials are refused, and any error other than not found was
fatal.

Such an error now means the check could not be made: it is logged at
info level, so --cron stays silent, and the command goes on. Not found
still stops it. The documents now say so, and that such a host does
not notice an emptied destination, so vaultik database delete must be
run on it after the destination is emptied. The fault-injecting test
store gains a Stat hook for the test.

Model: opus-5-5
This commit was merged in pull request #392.
This commit is contained in:
clawbot committed 2026-10-15 02:02:35 +02:00
1 parent 6a57750a7b
commit 850e2de25a
9 files changed
+132 -54

No files matched your search

+2 -2
View File
@@ -58,8 +58,8 @@ func (v *Vaultik) NukeRemote(force bool) error {
// Checked before anything is deleted: running nuke again would fail
// the same way, so the advice below must not follow these errors.
// The listing also fails on a destination without the marker while
// the local index holds snapshots.
// The listing also fails on a destination that answers that it has
// no marker while the local index holds snapshots.
err := v.EnsureStorageBinding()
if err != nil {
return err