I’m really new to Nextcloud and I just finished my first installation inside a Debian 10 VM on my Synology NAS.
This means that also the files that I upload to my Nextcloud will be stored inside this VM.
But I want all files to be stored on a separate shared folder on my NAS.
I see big advantages by doing so:
- Backups are a lot easier since I can include them in my already existant automatic backups of the NAS.
- I also want to access the files locally via SMB/cifs. Nextcloud should just be used for accessing files over the Internet, Sharing, Calender etc.
- VM doesn’t grow to hundet of gigabytes
- VM snapshots include only the OS, webserver configuration and Nextcloud itself.
My first idea was to just mount that shared folder with fstab to the current location of my Nextcloud data folder (/var/nextcloud_data) but I see problems here:
- Probably unnecessary bad performance(?)
- File operations (add,change,delete) via SMB (without Nextcloud software) won’t be recognized by Nextcloud as far as I know.
- What about file permissions? If I create a file over SMB it probably doesn’t have www-data:www-data ownership?
Currently I have no idea how I could realize that.
I’m thankful for any help.