Nextcloud Storing Data on NAS
Mounting the data dir as a SMB share from my Synology NAS.
Creating a Mountpoint to NAS/nextcloud-data
To ensure the data from the NAS is available to the container, we have to mount the nextcloud-data
directory via SMB on my docker server.
Auto Mounting nextcloud-data on Startup
Place following line into /etc/fstab
.
- Manually mount fstab mounts with
sudo mount -a
. - The
x-systemd.automount
will wait until the network is available before trying to establish the mount
Remounting nextcloud-data on Restart
If the server restarts, the mount point is lost. Therefore you can
- add cronjob to remount fstab with
crontab -e
every hour