[SOLVED] [PDM 1.1.7] Change Remote Name without Deleting Remote: Is This the Correct Procedure?

Sep 1, 2022
560
215
68
42
I gave one of my remotes a name I now regret and would like to change. From reviewing the docs and poking around the web GUI, unless I missed something, I can't really see an easy way to do it without editing the config files--sort of like how it's not possible to edit certain settings on PVE storages without editing the config files directly.

I found the remotes.cfg, remotes.shadow (where the remote's token lives), and .remotes.lock in /etc/proxmox-datacenter-manager.

I think this should be a simple process:
  1. Change the remote name in remotes.cfg.
  2. Change the remote name in .remotes.shadow.
  3. Reboot.
I'm pretty sure I can just ignore the .lock file since i"m not trying to make changes at runtime?
 
Yes, I believe you should simply be able to rename it in the config by editing both the remotes.cfg and remotes.shadow manually.

Regarding the lock file: this file is in place to get "locked", it is an empty file which tells other writers/readers that it is currently being written to, preventing concurrent writes which could lead to race conditions.
 
I just tried this, and it seems to have picked up the change in the GUI without me rebooting.
I'm not even sure I manually reloaded the page.

In any case, that worked. Even better than expected. :)
 
note that historic rrd/task data (etc.) will not be migrated over, so you might loose some rrd/task history (though i'm not sure if it's safe to just simply rename those folder/filenames too, they would be in /varlib/proxmox-datacenter-manager/ )