how to set attributes vor virtual drives with qm set

WRZ

New Member
Oct 20, 2022
2
0
1
Dear all,

we have one vm with some crucial data and some nice to have data.
The drives virtio0 + virtio1 contain the crucial data - some 450GB of it. We can afford to loose a day worth of this data but not the entire set.
The drive virtio2 has some 2TB of non-crucial data.
we have a 1Gbit/200Mbit aDSL connection.

The current strategy ist to:

replicate the vm to a twin server every hour
back up the entire 2,5TB every night to a pbs in a different room on site
make s offline copy of the virtio0+1 to an external drive.
unset the backup flag on the virtio2 and run a manual encrypted backup to a pbs off site.

now I would like to make a script to :
unset the backup flag on the virtio2
run vzdump to the off site pbs
set the backup flag on virtio2

can this be done with qm set?

Thank you for your support!
Kind regards
Martin
 

Attachments

  • 102.png
    102.png
    103.3 KB · Views: 8
Last edited:
you can't set a single attribute, just the full config property string.
 
you can just use the current one and replace the attribute you want to change..

e.g., qm config XXX
 

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!