This is an automated email from the ASF dual-hosted git repository.
winterhazel pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/main by this push:
new 424f0dfdf5d nasbackup: fix agent.log is cleaned when backup stopped vm
(#13641)
424f0dfdf5d is described below
commit 424f0dfdf5d6126485339a3a2470e7f16136dfa2
Author: Wei Zhou <[email protected]>
AuthorDate: Tue Jul 21 18:59:56 2026 +0200
nasbackup: fix agent.log is cleaned when backup stopped vm (#13641)
---
scripts/vm/hypervisor/kvm/nasbackup.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/vm/hypervisor/kvm/nasbackup.sh
b/scripts/vm/hypervisor/kvm/nasbackup.sh
index e4204feb29b..5b3bed7c875 100755
--- a/scripts/vm/hypervisor/kvm/nasbackup.sh
+++ b/scripts/vm/hypervisor/kvm/nasbackup.sh
@@ -407,7 +407,7 @@ backup_stopped_vm() {
volUuid="${disk##*/}"
fi
output="$dest/$name.$volUuid.qcow2"
- if ! qemu-img convert -O qcow2 "$disk" "$output" > "$logFile" 2> >(cat
>&2); then
+ if ! qemu-img convert -O qcow2 "$disk" "$output" >> "$logFile" 2> >(cat
>&2); then
echo "qemu-img convert failed for $disk $output"
cleanup
exit 1