mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
vmbackupmanager bugfixes: (#577)
- error on running with empty -dst dir and without -runOnStart - error on restoring with backup, created before v1.90.0
This commit is contained in:
parent
ec75d9097d
commit
b3f8bb5b50
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ func (b *Backup) Run() error {
|
|||
if err := storeMetadata(src, dst); err != nil {
|
||||
return fmt.Errorf("cannot store backup metadata: %w", err)
|
||||
}
|
||||
if err := dst.CreateFile(fscommon.BackupCompleteFilename, []byte{}); err != nil {
|
||||
if err := dst.CreateFile(fscommon.BackupCompleteFilename, []byte("ok")); err != nil {
|
||||
return fmt.Errorf("cannot create `backup complete` file at %s: %w", dst, err)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue