Iām just trying to identify, weather itās possible to install a Nextcloud client on a Synology or not. Anyone here having experiences in this or any useful suggestion?
Background: Due to poor internet connectivity I try to mirror my Nextcloud instance, which is hosted at an internet provider, on my local Synology. Iām having about 100.000 files in my Nextcloud (50GB) and I already tried Synologyās CloudSync to keep the local mirror always updated. The point is, that CloudSync takes about 1ā¦2 hours to get aware about any new file, as the connection is done via WebDAV. I guess WebDAV does not support any notification about changes (new files, updated files, deleted files) and therefore, it seems to me that CloudSync is continiously scanning the whole WebDAV file system of my cloud for changes, which takes such long. The Nextcloud client is using any other mechanism to get aware of changes in the cloud within seconds.
If a Nextcloud client cannot be installed on a Synology, any other suggestion to overcome this long sync time is highly appreciated.
my cloud sync is downloading files at once. but i donā have 100.000 files in the nc.
did you look at the settings of cloud sync? there is a parameter āAbrufzeit = 10 secā in general settings. sounds like that triggers the sync cycle each 10 sec.
Iām not sure if Iāve understood what youāre trying to do - install NextCloud on your Synology NAS or just a client (I donāt understand the latter). If Iāve misunderstood I apologise, but what Iāve written below might help others searching for s Synology installation. If your NextCloud is with an external provider, why not move it to your local DS and use that? I tried NextCloud hosted elsewhere and decided I want my data inside my network.
I used this tutorial and it works perfectly. I needed to add a few extra extensions in step 4 - you will see from NextCloud settings after installation what might be missing for you.
I love the way the auto update feature in NextCloud works so well with the Diskstation install too.
Backups using Hyperbackup work too - I needed to restore because of user error and the restore did everything I hoped for - got me back to where I was. I backup the whole /Volume1/web folder AND the MariaDB app and that catches everything. If your data folder is outside the web folder, backup that too.
I have a DS218+ box with a 4GB memory module and NextCloud flies. I run the NextCloud app on my desktop which syncs all my data to a local folder and the NextCloud iOS app on my phone which allows me to access my NextCloud data folder as part of the accessible filesystem. I use the calendar and contacts app and Itās a perfect replacement for Google Drive, Calendar and Contacts. To sync calendars and contacts with an iOS or MacOS device just use the normal DAV sync service included with iOS or MacOS. For Android you need the DAVDroid app.
I used the Synology DDNS service to create a hostname accessible from both inside and outside my network and port forwarded 63443 -> local 443 on my Diskstation to make sure inbound queries were handled correctly and passed on to my NextCloud install. I needed to create an https certificate using Letās Encrypt - details in the tutorial. I moved it to the top of the list in the DSM control panel, above the default Synology certificate to get it working without errors.
No, the settings there is 10s. I do have several sync jobs there reacting quite fast on any changes. Maybe Iām wrong, but as far as I understood the WebDAV sync mechanism, there is way letting CloudSync know about changes in the cloud except the full scan of the WebDAV system, which takes about 1ā¦2hrs due to the high amount of files and folders. So, Iām pretty sure that itās because of WebDAV.
The Nectcloud client is using something like file hashes. It is using a hidded meta file and I assume this helps to get aware about the remote changes in the cloud.
thatnks for the reference, but unfortunately Iām not looking for running Nextcloud on my Synology, Iām looking for something, which is able to sync my existing Nextcloud in the internet quite fast with a folder/share hosted on my Synology for the loacal intranet. Therefore, Iām looking for a way getting the Nexcloud CLIENT running on my Synology, not the Nerxtcloud Server installation. As there are versions of the client available running under Linux, I would assume this could somehow work. Any idea on this?
one idea would be a nice, little docker-container on your dsm like this:
FROM ubuntu:latest
RUN add-apt-repository -y ppa:nextcloud-devs/client
RUN apt-get update
RUN apt-get install -y xvfb x11vnc fluxbox sudo
RUN apt-get install -y --no-install-recommends nextcloud-client
RUN rm -rf /var/lib/apt/lists/*
RUN apt-get clean
Expose ports.
EXPOSE 5900
RUN useradd -m -u 1027 -p -s /bin/bash user
RUN adduser user users
RUN adduser user adm
RUN adduser user sudo
ADD fluxboxstart.sh /home/user/.fluxbox/startup
RUN chown -R user:user /home/user/.fluxbox
RUN chmod -R 774 /home/user/.fluxbox
ADD fluxbox.sh /home/user/fluxbox.sh
RUN chmod +x /home/user/fluxbox.sh
RUN chown user:user /home/user/fluxbox.sh
RUN mkdir -p /home/user/.local/share/data/Nextcloud
ADD nextcloud.cfg /home/user/.local/share/data/Nextcloud/nextcloud.cfg
ADD nextcloud.cfg /home/user/.config/Nextcloud/nextcloud.cfg
ADD sync-exclude.lst /home/user/.local/share/data/Nextcloud/sync-exclude.lst
ADD sync-exclude.lst /home/user/.config/Nextcloud/sync-exclude.lst
ADD cookies0.db /home/user/.config/Nextcloud/cookies0.db
RUN chown -R user:user /home/user/.local/
RUN chmod 774 -R /home/user/.local/
RUN chown -R user:user /home/user/.config/
RUN chmod 774 -R /home/user/.config/
thanks for your proposal. Unfortunately, my root cause for the solution Iām looking for is a very slow internet connectivity of the small office, where Iām using the DSM and thatās the reason why Iām trying to have something like a local mirror of the Nextcloud instance, as some people are working locally and others are working remotely. So, if I would use the Federation feature, this would not solve my root issue and the same files are getting pulled through the slow line multiple times again.
1 Nextcloud Sync from the Internet Nextcloud to Local Synology (using Webdav)
1 BitTorrent Sync from Synology to LAN Client machine (using the 3rd party Synology Package)
using the same root folder
and maybe you also have BitTorrent Sync on the client machineā¦
I guess every solution will (hopefully) always check for file hashes and if they match nothing will get copied unnecessarily
hello @Elleven did you find solution? I am looking for same thing to use Nextcloud client on Synology nas (during race weekend in garage with not stable internet connection) and sync. to our cloud serverā¦
Rather than trying to use Nextcloud client for that, I would recommend to use rather an other specialized tool like rsync, rclone or (if you have access to the system of your Nextcloud server) syncthing
This proposal does not fit to the problem. rsync as well as rclone are beatiful tools for creating backups, but they are not useful to keep cloud locations synchronized as they are working on a file-system-level only. But thats not what makes a cloud being a cloud. As initially written I have >100k files and 50k folders keeping synchronized and that takes sometimes hours befor the Synology realizes any file changes on the remote system. rsync will not bring any improvement on this as this tool as well needs to check all files and folders one by one for changes while the Nexcloud client is getting some king of notifications about any changes und can pull the modified file immediately.
Nevertheless I solved my underlaying problem now differently. I installed a local Windows server in the small office running the Nextcloud client.
It seems there is no easy solutionā¦ so rclone.org or other 3rd party tools seem to be the preferred solution. Leaving the links here for anyone else looking for a solution: