vzdump how use/specify default compression type? How many dashes?

mmenaz

Renowned Member
Jun 25, 2009
835
25
93
Northern east Italy
Hi, with 1.9 you just had --compress option in vzdump, now with 2.1-1 I if I do:
Code:
# vzdump --compress --storage backup 110
I get the error:
Code:
400 Parameter verification failed.
compress: value '--storage' does not have a value in the enumeration '0, 1, gzip, lzo'

If I specify --compress default I get an error too, and if I don't specify --compress the backup is not compressed (of course).
So to me seems that there is not a default value, since you MUST specify it, or am I missing something?

Also, the man of vzdump states that those parameters have only one dash in front (like -compress), while I've found that they work with two dashes too (--compress) and, as far as I know, in GNU usually you have a single dash for one letter flags and two if longer (like ls has -a, --all to show also hidden files).

Code:
# pveversion -v
pve-manager: 2.1-1 (pve-manager/2.1/f9b0f63a)
running kernel: 2.6.32-12-pve
proxmox-ve-2.6.32: 2.1-68
pve-kernel-2.6.32-11-pve: 2.6.32-66
pve-kernel-2.6.32-12-pve: 2.6.32-68
lvm2: 2.02.95-1pve2
clvm: 2.02.95-1pve2
corosync-pve: 1.4.3-1
openais-pve: 1.1.4-2
libqb: 0.10.1-2
redhat-cluster-pve: 3.1.8-3
resource-agents-pve: 3.9.2-3
fence-agents-pve: 3.1.7-2
pve-cluster: 1.0-26
qemu-server: 2.0-39
pve-firmware: 1.0-16
libpve-common-perl: 1.0-27
libpve-access-control: 1.0-21
libpve-storage-perl: 2.0-18
vncterm: 1.0-2
vzctl: 3.0.30-2pve5
vzprocps: 2.0.11-2
vzquota: 3.0.12-3
pve-qemu-kvm: 1.0-9
ksm-control-daemon: 1.1-1
 
you just need to specify the compression method, I suggest lzo.

Code:
# vzdump --compress lzo --storage backup 110
 
Sure, but "man vzdump" states that lzo is the "default" compression, but usually default means "the value is taken if none is specified". Seems to me that since you HAVE to specify one, there is NO default.
So better fix the man page or have it behave like in 1.x.
Also the "dash" part of my question bugs me :)
Best regards
 

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!