VictoriaMetrics/lib/backup
Zakhar Bessarab aa583f0b9a
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-18 16:18:03 +02:00
..
actions lib/backup: force copying of parts.json (#5006) 2023-09-18 16:18:03 +02:00
azremote app/vmbackup: add ability to make server-side copying of existing backups 2023-08-13 17:26:26 -07:00
backupnames fix removing storage data dir before restoring from backup (#598) 2023-07-06 22:32:12 -07:00
common lib/backup: force copying of parts.json (#5006) 2023-09-18 16:18:03 +02:00
fscommon vmbackupmanager: fixes for windows compatibility (#641) 2023-08-11 05:43:28 -07:00
fslocal lib/backup: fixes path generation for windows (#4133) 2023-05-08 23:16:26 -07:00
fsnil lib/backup: add MustStop() method for all remote filesystems 2020-10-09 15:32:13 +03:00
fsremote app/vmbackup: add ability to make server-side copying of existing backups 2023-08-13 17:26:26 -07:00
gcsremote app/vmbackup: add ability to make server-side copying of existing backups 2023-08-13 17:26:26 -07:00
s3remote app/vmbackup: add ability to make server-side copying of existing backups 2023-08-13 17:26:26 -07:00