From b3f8bb5b50a8a0a078af09ea68a92ed44647e2eb Mon Sep 17 00:00:00 2001 From: Alexander Marshalov <_@marshalov.org> Date: Thu, 25 May 2023 15:56:18 +0200 Subject: [PATCH] vmbackupmanager bugfixes: (#577) - error on running with empty -dst dir and without -runOnStart - error on restoring with backup, created before v1.90.0 --- lib/backup/actions/backup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/backup/actions/backup.go b/lib/backup/actions/backup.go index 108cd3630..8f44c84d8 100644 --- a/lib/backup/actions/backup.go +++ b/lib/backup/actions/backup.go @@ -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) }