Skip to content

Confusing glob format in config on Windows #1234

@Limeth

Description

@Limeth

Hello!
I ran into a bit of a struggle trying to get glob patterns to work with the glob/iglob setting in the config, on Windows. At first, I tried using iglob = '!C:\Users\limet\AppData' and was surprised that it didn't seem to work for me.
After playing around with the format, I ended up with iglob = '!C:/Users/limet/AppData', which seemed to work fine.
According to @aawsome, iglob = '!C:\\Users\\limet\\AppData' and iglob = "!C:\\\\Users\\\\limet\\\\AppData" should work as well.
I think these settings don't have a documented example value in the config README.md, so just adding those would probably help some folks.

Thanks for your efforts!

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-configArea: Related to the config file functionality and formatA-coreArea: Generally related to `rustic_core`O-windowsOperating system: Windows

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions