Where should the data folders be located for programs like Syncthing, Apache/Nginx, Lychee (self-hosted photo galleries), etc.?
These programs generate large amount of non-user-specific data. I'm trying to learn and adhere to hier(7) by creating a folder in the right place, but I can't quite find this specific answer.
From what I've seen, programs sometimes use /var/ and other times /usr/local/:
So for something like Syncthing, should the share data folders go in:
P.S. Why am I asking? I want to contribute to documentation, so knowing where folders like this should go helps me write better guides.
P.P.S. This is my first post and I'm trying my best to learn and follow the forum rules!
These programs generate large amount of non-user-specific data. I'm trying to learn and adhere to hier(7) by creating a folder in the right place, but I can't quite find this specific answer.
From what I've seen, programs sometimes use /var/ and other times /usr/local/:
MySQL/MariaDB | /var/db/mysql/ |
Nginx | /usr/local/www/nginx-dist/ |
Apache | /usr/local/www/apache22/data/ |
So for something like Syncthing, should the share data folders go in:
- /usr/local/syncthing/shares/
- /usr/local/syncthing/
- /var/syncthing/
- ...Somewhere else?
P.S. Why am I asking? I want to contribute to documentation, so knowing where folders like this should go helps me write better guides.
P.P.S. This is my first post and I'm trying my best to learn and follow the forum rules!