Hi,
I'm trying to make a full backup of a VM to an usb drive, but somehow I'm getting an unexpected error about the parameters being used.
So I've started by mounting the usb drive, setting an ext4 fs, mount it to
Then for the backup, when I try to run the following command, I get the error bellow:
My intention is to make a manual backup to an USB drive, and not having that backup registered in the VM list of backups. It's just a simple full backup that I will test importing into another PVE instance for test purposes. I have no backup on that VM, so I set
I even tried execution without the
Guess I'm doing something wrong, still can't find a way around it. Anyone can help me identify what's wrong?
Thank you.
I'm trying to make a full backup of a VM to an usb drive, but somehow I'm getting an unexpected error about the parameters being used.
So I've started by mounting the usb drive, setting an ext4 fs, mount it to
/mnt/usb
and creating the folder /mnt/usb/vm.backups
where I'll be storing the backups.Then for the backup, when I try to run the following command, I get the error bellow:
Code:
# vzdump 100 --mode stop -–dumpdir /mnt/usb/vm.backups --compress gzip –-prune-backups keep-last=0
Unknown option: –dumpdir
400 unable to parse option
vzdump {<vmid>} [OPTIONS]
#
My intention is to make a manual backup to an USB drive, and not having that backup registered in the VM list of backups. It's just a simple full backup that I will test importing into another PVE instance for test purposes. I have no backup on that VM, so I set
–prune-backups keep-last=0
thinking that it will help me force my "don't-keep-backup" intention (I'm not setting the usb as a directory storage for backups, just a drive where I can dump a manual backup and remove the drive afterwards).I even tried execution without the
–prune-backups keep-last=0
parameter, but the same result. Still the error about the -dumpdir
parameter (single "-") is strange, as the man page lists that option:
Code:
--dumpdir <string>
Store resulting files to specified directory.
Guess I'm doing something wrong, still can't find a way around it. Anyone can help me identify what's wrong?
Thank you.