I want to use Azure Blob storge as my backup destination.
I don’t want to create a ton of containers, so I would prefer within 1 container to backup to dfferent folders.
However, I have no clue how to do that. When I use containername/folder as “container name”, the backup will still back up to the root folder.
In the backend config, there is only support for a container name.
The azure blob storage does not seem to directly support folders (the equivalent would be containers). But, you can add slashes in blob names (equivalent of filenames) to add a virtual hierarchy (this is from a brief look at the documentation, I am not familiar with it myself).
What you can try, is using the advanced option --prefix=folder/duplicati. Make sure that every prefix is different. Do a test backup and restore, and if you can, look at the container in azure to see if everything is as expected.
If the slash does not work, use different prefixes without folders. However, depending on the internal implementation, it might be required to list the contents of the entire container for every backup. If that is the case, you might see slowdowns if many backups share the same container.
By default, the Blob service is based on a flat storage scheme, not a hierarchical scheme. However, you may specify a character or string delimiter within a blob name to create a virtual hierarchy.
Some Duplicati messages that normally show just the file name might include the folder, as it’s in a file name as far as Duplicati is concerned. Maybe all will work, maybe not. Watch out for performance loss mentioned earlier. Duplicati possibly will have to list the whole container to search for the relevant files.