Hi,
I've noticed an annoying inconsistency in how resticprofile handles case sensitivity in version: 2 configurations for groups.
Currently, when parsing the groups: section, the program normalizes the group names themselves to lowercase (e.g., defining W1: requires calling -n w1 in the terminal). However, the elements inside the profiles: array within that group are treated as case-sensitive, literal strings.
If I have a configuration like this:
version: 2
groups:
W1:
profiles: [ Dom, Ha ]
profiles:
Dom:
inherit: default
Ha:
inherit: default
Running resticprofile -n w1 backup works perfectly fine, matching Dom and Ha exactly as written in the profiles section.
However, if I use lowercase for profiles inside the group declaration (hoping for the same normalization that happens to group names), it fails silently or throws an error because it cannot find dom or ha.
Could you please update the parser so that it either:
Normalizes the profiles array inside the groups section to lowercase as well (since resticprofile internally seems to register all main profile names in lowercase anyway)?
Or keeps case sensitivity strictly consistent across both group names and their arrays?
Keeping uppercase names for profiles is very important to many users because they often map 1:1 to actual folder names on the disk.
Thank you for maintaining this great tool!
Hi,
I've noticed an annoying inconsistency in how
resticprofilehandles case sensitivity inversion: 2configurations for groups.Currently, when parsing the
groups:section, the program normalizes the group names themselves to lowercase (e.g., definingW1:requires calling-n w1in the terminal). However, the elements inside theprofiles:array within that group are treated as case-sensitive, literal strings.If I have a configuration like this:
Running resticprofile -n w1 backup works perfectly fine, matching Dom and Ha exactly as written in the profiles section.
However, if I use lowercase for profiles inside the group declaration (hoping for the same normalization that happens to group names), it fails silently or throws an error because it cannot find dom or ha.
Could you please update the parser so that it either:
Normalizes the profiles array inside the groups section to lowercase as well (since resticprofile internally seems to register all main profile names in lowercase anyway)?
Or keeps case sensitivity strictly consistent across both group names and their arrays?
Keeping uppercase names for profiles is very important to many users because they often map 1:1 to actual folder names on the disk.
Thank you for maintaining this great tool!