the plan is to built a debian-based sever with owncloud for syncing addressbooks, calendars, files etc. and also access large video-files in the LAN via webdav from some kodi-clients (maybe also use MySQL to store the kodi-settings).
from time to time the same machine will be used via GUI (VNC and/or direct screen) for resource-hungry tasks like ripping, video-encoding etc., everything else will be done with mobile devices and lightweight SBCs.
my question is how can i link the home-folder (/home/"os_user"/) and the owncloud data-files (/var/www/owncloud/data/"oc_user"/files/)? - i don't want to normally "upload"/sync the files since it is the same machine and will use twice the space!
and i'm also afraid of messing up the user-rights...!
my answers/research/guesses so far:
- hardlinks are unusable because i have to create every folder twice, link every file one by one (via command-line) and also have to delete every file twice.
- softlinks work, but i'm not sure if it is the best solution (i still have problems with the user-rights)... and what should be the master?
mount --bind(executed via
/etc/fstab) the better way? ...what should be the master? and what's with the user-rights?!?
- or is there a completely different solution i never thought about...?