Can I safetly delete the empty folders in the repository?

Hi there!

I’ve been using Kopia for a while now and I’ve really been enjoying it so far.

One question I have though is about the content of the repository folder.

It contains, on my machine, 456 files (ok) and 14 456 directories (!). Which means taht at least 14k directories are empty.

My question is: can they safely be deleted? They really slow down my backup program which goes through all these folders, so I’d like to remove them if possible.

I’ve already run multiple kopia maintenance run --full (with no object being too early to be deleted) and I still have all these files.

Thanks in advance for your answers!

1 Like

Great question. An even better one is why is maintenance not removing the empty directories? it should!

I reorganized my server and had to move the kopia folders. and it was ridiculous the how there were 100 empty directories for every 1 actual file.
this introduces major slowdowns. parsing all those empty directories is not free

actually. I found an open issue for this on github