vzdump.conf "dumpdir"

Jul 14, 2024
22
0
1
Hello.

I'm adjusting a script to send backups to the cloud.

The script must read the "dumpdir" variable from the vzdump.conf file to locate the backup after finishing and sending it to the cloud. But when the task is finished, the reading is not performed, it returns as if it were empty.

I have already changed the variable to read the storage directory, as I am using PBS, but without success.

I am not able to identify how the node makes this note.
 
Hey,

so you have a script that looks for the dumpdir in vzdump.conf and that script is not reading this option correctly from the config file? You mention PBS, how is that involved here? What version of PVE are you running?
 
Hey,

so you have a script that looks for the dumpdir in vzdump.conf and that script is not reading this option correctly from the config file? You mention PBS, how is that involved here? What version of PVE are you running?
Hello Hannes.

I have 3 PVE and my backups are config in the "Backups" option in the "Datacenter".

1723029020021.png

Log task with script:

NFO: starting new backup job: vzdump 101 --fleecing 0 --all 0 --storage proxmox-backup --mode snapshot --node HOST-V1 --notes-template '{{guestname}}' --prune-backups 'keep-last=1'
INFO: Starting Backup of VM 101 (qemu)
INFO: Backup started at 2024-08-06 18:37:00
INFO: status = running
INFO: VM Name: SRVCONTROLLER-CONTOSO
INFO: include disk 'scsi0' 'local-zfs:vm-101-disk-0' 50G
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: creating Proxmox Backup Server archive 'vm/101/2024-08-06T21:37:00Z'
INFO: issuing guest-agent 'fs-freeze' command
INFO: issuing guest-agent 'fs-thaw' command
INFO: started backup task 'ca06ba39-2ab7-4c07-9d19-8248cc3d74cf'
INFO: resuming VM again
INFO: scsi0: dirty-bitmap status: OK (504.0 MiB of 50.0 GiB dirty)
INFO: using fast incremental mode (dirty-bitmap), 504.0 MiB dirty of 50.0 GiB total
INFO: 45% (228.0 MiB of 504.0 MiB) in 3s, read: 76.0 MiB/s, write: 69.3 MiB/s
INFO: 79% (400.0 MiB of 504.0 MiB) in 6s, read: 57.3 MiB/s, write: 57.3 MiB/s
INFO: 80% (408.0 MiB of 504.0 MiB) in 9s, read: 2.7 MiB/s, write: 2.7 MiB/s
INFO: 85% (432.0 MiB of 504.0 MiB) in 53s, read: 558.5 KiB/s, write: 558.5 KiB/s
INFO: 86% (436.0 MiB of 504.0 MiB) in 57s, read: 1.0 MiB/s, write: 1.0 MiB/s
INFO: 92% (468.0 MiB of 504.0 MiB) in 1m, read: 10.7 MiB/s, write: 6.7 MiB/s
INFO: 100% (508.0 MiB of 504.0 MiB) in 1m 3s, read: 13.3 MiB/s, write: 12.0 MiB/s
INFO: backup is sparse: 4.00 MiB (0%) total zero data
INFO: backup was done incrementally, reused 49.54 GiB (99%)
INFO: transferred 508.00 MiB in 108 seconds (4.7 MiB/s)
INFO: adding notes to backup
INFO: prune older backups with retention: keep-last=1
INFO: running 'proxmox-backup-client prune' for 'vm/101'
INFO: pruned 1 backup(s) not covered by keep-retention policy
INFO: mv: cannot stat 'vm/101/2024-08-06T21:37:00Z': No such file or directory
INFO: Iniciando envio de para nuvem
INFO: 2024/08/06 18:40:38 Failed to create file system for "": can't use empty string as a path
INFO: Renomeando arquivo para o nome original vm/101/2024-08-06T21:37:00Z
INFO: mv: cannot stat '': No such file or directory
ERROR: Backup of VM 101 failed - command '/root/Scripts/backup_sent.sh backup-end snapshot 101' failed: exit code 1
INFO: Failed at 2024-08-06 18:40:38
INFO: Backup job finished with errors
INFO: notified via target `PROXMOX_Notification`
TASK ERROR: job errors

PVE and PBS is running the last version.

The command:

1723028806262.png

vzdump.conf


1723028837655.png
 
@Hannes Laimer

I believe the error in my script is the extension of the backup saved in PBS.


elif [[ $TARGET == "$DUMPDIR/qemu-"* ]]; then
VM_ID=$(echo "$TARGET" | cut -d "-" -f4)
BKP_PATH="$DUMPDIR/qemu-$VM_ID-$HOSTNAME.vma.zst"
fi

I think the "qemu" variable is wrong.

I can't find a way to insert it correctly.
 

Attachments

  • 1723144551723.png
    1723144551723.png
    312 bytes · Views: 0

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!