How to mount local folder as Volume?
My VPS disk space is huge, still I would like to use the new Volumes.
So I was thinking of moving the data (videos and music) to a folder (what's the best place? in root or home/yellowtent?) and then mount that folder as a Volume. However searching the internet for this specific UC didn't gave me a clear answer/instruction
Does anyone has experience with this?
Thanks in advance!
Ha! The choice is really down to just 4 paths since the code has explicitly white listed these. Only paths under /mnt, /media, /srv, /opt can be added as a volume. (I put a note in https://docs.cloudron.io/storage/#volumes as well now).
My understanding is that /media is for removable items like /media/cdrom whereas /mnt is for user mounts of attached devices (like my windows partition mount etc). Personally, I put my stuff in
/srvsince it's not an external disk.
But here's the FHS spec. If you find anything interesting, let me know I am happy to add more paths to that list if other places are more common/correct.
The wikipedia article is more readable - https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard