Saving Additional Data to Repository Folders

Hopefully this is just a quick question for the restic devs.

Would it be considered “safe” to create extra folders in the top level of a restic repository and store files there?

I’m working on my own interface for the restic executable and was thinking the repository itself would be a great location to store other information related to it, like backup and restore logs, and maybe even search indexes.

Will some operations confuse restic if it finds something in the repository it didn’t put there or will everything be ok as long as you don’t touch anything restic put there itself?

Thanks.

Restic currently doesn’t look outside the subfolders of a repository. So you can i theory create a new subfolder and store data there. However, future repository format versions may make use of additional subfolders, so make sure to use a unique folder name that cannot conflict with restic’s. Maybe by adding some unique prefix.

Sounds good. Thanks for the quick answer.