Veeam Endpoint Backup – how to change backup name after altering hostname of a source machine

veeam_logo

I have been using the free version of Veeam Endpoint Backup (VEB) product since it was first released and it works wonders. Really good software that just keeps getting better and better. You can not only backup desktop and laptops but also VMware virtual machines with PCI pass-through devices which Veeam Backup & Replication 9 cannot properly backup since snapshots are not allowed when PCI-e devices are in use. Another good use case for VEB is the ability to backup Hyper-V hosts themselves. I have a large number of Hyper-V boxes dotted around and although I use Veeam Backup & Replication to backup the virtual machines I still need some sort of backup for the hosts. VEB fills this gap perfectly and in the unlikely event of a disaster, I would use VEB to restore the host (C drive i.e. the OS) and Veeam B&R to get my virtual machines back (D drive where the VMs sit). This setup works really well and I already had to use it once!

One thing however that didn’t quite make to the GUI yet is the slightly annoying fact when you point the backups to SMB share and change the hostname of the source machine the backup name doesn’t reflect the new hostname within the share. In my example my Core i3 test bench used to be called DESKTOP-9H9LL2J but now I have changed its name to SPN-TESTB-01 to comply with my standard naming convention. In an ideal world, the backup folder should also change its name but that’s not the case. Here are some examples, hostname has been clearly changed to DESKTOP-9H9LL2J:

veeam_endpoint_backup_-_change_backup_name_after_altering_hostname_of_a_source_machine_1

but the destination still has the old name embedded into the backup files:

veeam_endpoint_backup_-_change_backup_name_after_altering_hostname_of_a_source_machine_2

So far I haven’t been able to find a way around this and the only solution is to manually delete few folders that belong to Veeam Endpoint Backup on the C drive as well as the database files and start again! Not ideal but better than having the confusing folder names I suppose. I have put together this rather simplistic script to achieve my goal:

Very simple script indeed – stop the required services, delete the database and two folders and start the services back up again. Easy enough and it certainly does the job.

Hopefully Veeam will patch this minor inconvenience in the upcoming version of VEB but for now, the above few lines should do the trick.

2 thoughts on “Veeam Endpoint Backup – how to change backup name after altering hostname of a source machine

  1. Terry T

    PERFECT! Thank you! I was deleting registry keys, ProgramData folders…I knew there had to be something else retaining these damn computer name settings!!!

Leave a Reply