K korkutefe Member Oct 2, 2018 3 0 6 35 Oct 2, 2018 #1 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?
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?
LnxBil Distinguished Member Feb 21, 2015 9,648 1,836 273 Saarland, Germany Oct 2, 2018 #2 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:
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:
K korkutefe Member Oct 2, 2018 3 0 6 35 Oct 2, 2018 #3 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?
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?
LnxBil Distinguished Member Feb 21, 2015 9,648 1,836 273 Saarland, Germany Oct 3, 2018 #4 Thank you for using the search function. Here is what you want: https://forum.proxmox.com/threads/put-vm-name-into-backup-name.27495/#post-197093
Thank you for using the search function. Here is what you want: https://forum.proxmox.com/threads/put-vm-name-into-backup-name.27495/#post-197093