What's the best way to sync profiles with remote?

So… Documentation mentions “Secondary backup LXD server” for backup strategy, and I think that’s great. However, I cannot figure out how to properly sync profiles between the production and the backup server. They are rather important to back up, and can change over time. The ideal solution would be if something like --refresh existed for lxc profile copy, but alas, as far as I can see, there is nothing like that. I cannot override once copied profiles. I cannot also remove them, and copy again because the backed up containers are dependent on them. So… What are you guys doing for backing up profiles? Is there any plan to make --refresh option available for lxc profile copy?

1 Like

lxc profile show NAME | lxc profile edit remote:NAME should do the trick

1 Like

That’s great! I would strongly consider adding a --refresh option to the profile copy command, though, as that’s something that’s intuitively searched for when figuring out how to sync profiles. Thanks!