VZDUMP add hostname

korkutefe

Member
Oct 2, 2018
3
0
6
35
Hi,

I want to write hostname to backup file when I get backup.

As a result of my research I always found old scripts.

Can you help me with this?
 
For QEMU based VM, this is impossible. The hostname depends on the internal settings which cannot be retrieved.

You can, however, show the configuration of the VM and this includes the name you've given:

upload_2018-10-2_20-56-45.png
 
Thank you.

I am getting a backup of a different file path through crontab and I am not using the interface.

For example:
vzdump 102 --node vm --dumpdir /backup /Antispam --mode snapshot --compress gzip --maxfiles 7

This command line is now separated by file names, but I want to add a hostname in the resulting backup.

Is it possible?
 

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!