Skip to content

Commit

Permalink
fix restore issues if target path contains spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
abbbi committed Nov 17, 2024
1 parent 8059c49 commit d2e5432
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ Version 2.17
---------
* Add rpm package build for fedora 41 (#234)
* virtnbdbackup: Backup fails if spaces exist in image path (#235)
* virtnbdrestore: Remote restore would fail if target path contains
spaces.

Version 2.16
---------
Expand Down
4 changes: 2 additions & 2 deletions libvirtnbdbackup/qemu/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def startRemoteRestoreNbdServer(
"--format=qcow2",
"-x",
f"{self.exportName}",
f"{targetFile}",
f"'{targetFile}'",
"-p",
f"{args.nbd_port}",
"--pid-file",
Expand Down Expand Up @@ -248,7 +248,7 @@ def startRemoteBackupNbdServer(
f"--format={disk.format}",
"-x",
f"{self.exportName}",
f"{disk.path}",
f"'{disk.path}'",
"-p",
f"{port}",
"--pid-file",
Expand Down

0 comments on commit d2e5432

Please sign in to comment.