I had installed nextcloud with snap installed nextcloud and made a daily backup with rsnapshot.
I backed following folders:
/snap/nextcloud/current
/var/snap/nextcloud/current
/var/snap/nextcloud/common
After a crash I had installed nextcloud again, but now is the question, how can I restore the backup?
I tried to copy the backup files with
rsync -avr /bak/snap/nextcloud/current /snap/nextcloud/<number to the symlink>
rsync -avr /bak/var/snap/nextcloud/current/ /var/snap/nextcloud/<number to the symlink>
rsync -avr /bak/var/snap/nextcloud/common/ /var/snap/nextcloud/common
During rsync some files are read-only and canât overwrite.
Do somebody now, how I can recovery nextcloud with my backup files?
/snap/nextcloud/current/ is the snap itself, itâs read-only by definition (sudo wonât help). Thankfully, since itâs read-only you didnât need to back it up or restore it in the first place. You got the important directories (/var/snap/nextcloud/{common,current}), did restoring those help?
In the future, note that the snap includes import/export functionalities via sudo nextcloud.import and sudo nextcloud.export, respectively.
I restored everything now and Iâm on track again
My new backup routine is that I daily start the sudo nextcloud.export and store it with rsnapshot on an external device.
Now I hope that it is enough to easily restore everything, if I have to reinstall nextcloud the next time
I have to stop the daily sudo nextcloud.export because I got problems with mit SATA harddisk on my raspberry pi 4. I think the export of about 20GB every day let the raspberry USB to SATA connection crash. I canât find the harddisk with blkid and I have to switch off and on the raspberry.
Do somebody knows a better way to safe the nextcloud data (more incremental or differential)?
I need some more or advanced help here. I also used a snap on an ubuntu server 20.4 LTE also due to its ease of use (no stack). I got a 150gb hdd for the OS and a RAID1 with (2x) 500gb.
now, I share my cloud with friends and have changed the data directory to /media/nextcloud/data, the RAID is mounted on /media. so trying the âsudo nextcloud.exportâ will abort due to missing the data where it used to be.
I am about to get a new computer with more power and a more useful motherboard. hence, I presume I will need to run installation once again with all the new hardware, right? I wonât be able to just connect the drives from the old to the new computer and run as before? just presuming, though⌠(I did not mention my noob-state yet, did I? ^^)
since I wonât be changing anything on the RAID, and got an SSD to replace the other hdd for the OS, I would like to save (or backup) the admin- and user-settings. can anybody tell me, where those settings are saved? kyrofa mentioned above that /snap/nextcloud/current/ is the snap itself, itâs read-only by definition, so where does the snap write down all the user data and my settings (incl. all them apps)?