Need to rename many wrongly named snapshots

Hi there.
I had a very rough schedule and I needed to both reorganize my files and backup in the same time. I did granular backup, excluding some folders.

Anyway, my problem is that now I have many snapshot id’s in the storage, which are not fully representing my folder structure anymore. It’s very confusing. Some having “test” naming, some having totally wrong naming. I even accidentally backed up two different folders with same id one by one, so now this snapshot has two fully different revisions.

So, my question is, how can I solve it?

Here is my current idea:

  1. fix wrong id’s in the “preference” files
  2. full backup of every repository with updated id’s
  3. delete irrelevant id’s from storage://snapshots

Will it work? Is there anything to add?

The second question is more general: what are the requirements of ID naming? What characters are not allowed? I guess I could test it, but maybe there is some paragraph in the wiki I missed

That can work yes, but is it important you immediately purge the old IDs?

Personally, I’d just leave the existing IDs to get pruned out over time, and eventually manually delete the last snapshot. If you absolutely don’t need historic versions, then delete 'em, sure…

IDs can use alphanumeric, as well as _ (underscore) and - (minus).

Thanks
No, I won’t remove anything before I’m sure that everything is uploaded correctly. It’s all initial, so no versions yet.