I think convention is for files served by the server to go in /srv
or even /usr/lib
.
Selfhosted
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.
Rules:
-
Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.
-
No spam posting.
-
Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.
-
Don't duplicate the full text of your blog or github here. Just post the link for folks to click.
-
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
-
No trolling.
Resources:
- selfh.st Newsletter and index of selfhosted software and apps
- awesome-selfhosted software
- awesome-sysadmin resources
- Self-Hosted Podcast from Jupiter Broadcasting
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
I mount extra storage under /mnt/
and store stuff like media in there.
And make symlinks for large collections, like ~/photos
-> /mnt/nas/photos
Interesting, are you accessing files directly on the NAS or something like that where the symlink makes sense?
You want the big files to live on the NAS, but be navigable from your home dir for convenience and to discourage saving to the local disk.
Oh I see, you mean you mount the NAS storage into /home?
Not quite - He's saying to mount the NAS under /mnt/ and to create a symlink under /home/ to go directly to /mnt/nas/photos
If you're on KDE Plasma / Dolphin, this can be done here:
and put something like this in there
This will create a folder that goes directly to /mnt/nas/pictures, but you can put it anywhere.
Gosh FINALLY this is starting to make sense. Thanks for your effort!
/mnt/ is where I would put this. Only exception would be if I had a service I was providing, like a media player server, and then I might mount it at /srv/
/storage
for me.
Mainly, I’m wondering if I should migrate /home/ to my RAID array, or leave /home/ where it is and create a new directory on the RAID array.
Leave home where it is. Symlink to important directories on RAID.
Makes it easier to mess with the RAID if it doesn't make logging in hard.
Personally I wouldn't worry too much about where you mount the volume, I use /storage on my boxes because I is easy to remember and sounds good to me. I also typically make a storage group that I give access to manage the files in the volume vs having my user own everything.
I wouldn't put it in home just because you are considering sharing with others.
I checked my local backup server and I have two directories:
/home/share for backup files
/home/app data for backup appdata
My main server which unfortunately runs unraid is structured like
/mnt/user/array/media
/mnt/user/array/Nextcloud
/mnt/cache_ssd/appdata