Skip to content

Commit

Permalink
vmbackupmanager bugfixes: (#577)
Browse files Browse the repository at this point in the history
- error on running with empty -dst dir and without -runOnStart
- error on restoring with backup, created before v1.90.0
  • Loading branch information
Amper authored and valyala committed Jul 6, 2023
1 parent 3d28357 commit fc67d94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/backup/actions/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit fc67d94

Please sign in to comment.