Hello,
I work for a NGO dedicated to digital education in Africa. We equip schools with Raspberry in wich there are content for teachers.
We want to use Nextcloud to collect and distribute courses coming from teachers.
An online Nexcloud is dedicated to teachers who agree to give their courses to african teachers.
A Nextcloud in Raspberry PI contain a copy of the online one. It allows african teachers to access the courses in schools without internet.
So we need to create a procedure that copy content from online Nextcloud to Raspberry Nextcloud.
What is the best way to do it :
using federation beetwin 2 servers (but raspberry server has no URL neither static IP adress)
write a procedure to copy the data directories and the database (for example with rsync)
use an android device as gateway : the app nextcloud first dowload the data when connected to online server, then upload the content when connected to Raspberry.
Thanks for your answer.
It will be once a month : someone go in the school and connect the Raspberry with its smartphone.
I’m going t see how to do it with Webdav.
But I think we will also need to export and import the MySQL database.
the database is not needed since you copy the via nextcloud commands. it would be wrong to copy the database. all local settings of the raspis would be lost. (e.g. the external mount to the online repo as well.)
It works very fine. I also mounted the nextcloud server on my PC. Incredible !
Another question : if I want to copy a directory already existing, it doesnt’t work.
Is it possible to copy a directory already existing and then it copy only new files ? It would be usefull to make an update of the directory.
To synchronise directories of two NC servers , for example to make NC2 get a copy of NC1 :
On NC1 you activate “external storage” and allow sharing of directories by users.
On NC2, ditectly on linux,
with davfs2 / mount.davfs , you mount the directory of NC1
with rsync you synchronise this directory with the files directory of the user of NC2 (/var/www/nextcloud/data/user/files/directory)
with command “occ files:scan” you rescan the files of this user so that they appear in NC