From fc67d94e8631a78036e81470651bab3f98615e37 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 31bf9188b..11cce6900 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) }