-
Notifications
You must be signed in to change notification settings - Fork 176
Separate OC data and user storage #520
Description
Is your feature request related to a problem? Please describe.
As a sysadmin, I'd like to maintain a distinction between Opencloud data and user storage. In the deployment, I understand that I can use OC_DATA_DIR to mount a volume to Opencloud for data. However, that folder contains both Opencloud data and user data. As I understand it, user data is stored in the STORAGE_USERS_POSIX_ROOT folder (relative to the Docker volume mount point).
Describe the solution you'd like
I would like separate mount points for internal Opencloud data and user storage (the only data I need to back up). For example:
volumes:
...
- ${OC_CONFIG_DIR:-opencloud-config}:/etc/opencloud
- ${OC_DATA_DIR:-opencloud-data}:/var/lib/opencloud
- ${OC_USER_DIR:-opencloud-user-data}:/var/lib/opencloud/storage/users/users
I haven't implemented this yet because I'm not sure if every user file is located there. If this setup should work as expected and there's interest in this feature, I'm willing to open a PR.
Describe alternatives you've considered
Currently, I set OC_DATA_DIR to a folder on the host machine (/mnt/opencloud) and mounted a drive to /mnt/opencloud/storage/users/users. Every user file should be there, and it currently works. However, I'm not certain it contains everything I need, and this setup might change in the future.
Other info
I'm using opencloud_full version 2.0.0, with default posixfs.
If there's already a better solution for my use case, please let me know!