Besides the issue, that --flat doesn’t seem to work for you, what file system are you using? Sharding is rather vital for Kopia’s performance when performing searches and indexing. I don’t know of any regular file system, that will not perform terribly, when having to deal with thousands of files in a folder…
I’m using a s3 bucket, so the repository is ‘flat’ anyway. But I do the kopia install and some things arround it with ansible. I’m testing the role with molecule and there the testing repository is located on the file system of a ubuntu container. I want to have this test as close as possible to the s3 setup and tried to use the --flat flag to get a ‘flat’ testing repository. It does not work.
I still don’t know what purpose the ‘–flat’ flag serves in the repository create context? What is it for?
I think the option --flat only applies to cloud based repos and that it’s deliberately disregarded on regular volumes. I dug a bit into the source code and found this explanation for it: