VictoriaMetrics/lib/backup/actions
Zakhar Bessarab 264ffe3fa1
lib/backup: force copying of parts.json (#5006)
* lib/backup: force copying of parts.json

Copying of parts.json is required because `part.key()` comparison can create same key value for files with different contents. This will result in inconsistent backup being created or restored.

See: https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5005
Signed-off-by: Zakhar Bessarab <z.bessarab@victoriametrics.com>

* lib/backup: ensure parts.json is only copied once

Signed-off-by: Zakhar Bessarab <z.bessarab@victoriametrics.com>

---------

Signed-off-by: Zakhar Bessarab <z.bessarab@victoriametrics.com>
Co-authored-by: Nikolay <nik@victoriametrics.com>
2023-09-15 19:04:38 +02:00
..
backup.go lib/backup: force copying of parts.json (#5006) 2023-09-15 19:04:38 +02:00
copy.go lib/backup: force copying of parts.json (#5006) 2023-09-15 19:04:38 +02:00
restore.go lib/backup: force copying of parts.json (#5006) 2023-09-15 19:04:38 +02:00
util.go fixed error with double slash in vmbackupmanager (#557) 2023-05-11 13:38:07 -07:00