vzdump reports error with --exclude-path /mnt/*

Sasha

Well-Known Member
Oct 18, 2018
88
1
48
Kazahstan
Hi, guys!
I'm really in stuck with command

Code:
/usr/bin/vzdump 104 --dumpdir /root/backups --mode snapshot --compress zstd --exclude-path /mnt/*

that leads to error

Code:
400 Parameter verification failed.
vmid: invalid format - value does not look like a valid VM ID
vzdump {<vmid>} [OPTIONS]

As i wait --exclude-path /mnt/* should exclude files and direcories behind /mnt/
Would You help me to figure out that?
 
Hi, probably your shell is expanding the /mnt/* pattern, so vzdump sees some extra arguments it doesn't understand and throws the "value does not look like a valid VM ID" error. Putting the /mnt/* into single quotes should prevent the shell from expanding it:
Code:
/usr/bin/vzdump [...] --exclude-path '/mnt/*'
Alternatively, you can escape the * with a backslash (/mnt/\*).
 
Last edited:
  • Like
Reactions: Sasha

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!