Nextcloud backup/sync to NAS

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
eglider86
Posts: 50
Joined: Sat Mar 20, 2021 10:12 am

Nextcloud backup/sync to NAS

Post by eglider86 »

Hi,
I am looking for advise to setup a backup sync of my nextcoud to my NAS with raid.
Nextcloud running on rpi3 by dietpi. Looked for an app but did not find any updated one.
What i would like is to have my NC to be automatically backup/synced to the my NAS.
How can i achieve that?
thanks
Andrew
User avatar
Joulinar
Posts: 5688
Joined: Sat Nov 16, 2019 12:49 am

Re: Nextcloud backup/sync to NAS

Post by Joulinar »

Hi,

I guess you would need to create your own script following NextCloud docs

https://docs.nextcloud.com/server/lates ... ackup.html


We had quite a long discussion on a similar question in the past viewtopic.php?t=8491
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
eglider86
Posts: 50
Joined: Sat Mar 20, 2021 10:12 am

Re: Nextcloud backup/sync to NAS

Post by eglider86 »

Thank you! I just wanted to double check if any usable app exists.
User avatar
Joulinar
Posts: 5688
Joined: Sat Nov 16, 2019 12:49 am

Re: Nextcloud backup/sync to NAS

Post by Joulinar »

At least not from DietPi side natively
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
eglider86
Posts: 50
Joined: Sat Mar 20, 2021 10:12 am

Re: Nextcloud backup/sync to NAS

Post by eglider86 »

Can i migrate NC install to a RAID system?
User avatar
Joulinar
Posts: 5688
Joined: Sat Nov 16, 2019 12:49 am

Re: Nextcloud backup/sync to NAS

Post by Joulinar »

From DietPi point of view it doesn't matter. It just need to be a file system locally accessible.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
eglider86
Posts: 50
Joined: Sat Mar 20, 2021 10:12 am

Re: Nextcloud backup/sync to NAS

Post by eglider86 »

How do i do that?
eglider86
Posts: 50
Joined: Sat Mar 20, 2021 10:12 am

Re: Nextcloud backup/sync to NAS

Post by eglider86 »

So i am thinking about the following setup and please share you thoughts about it.
Have a nextcloud running on raid 1 setup system of dietpi. Then have a cron script that runs periodically and back up the NC install on NAS.
Also i have read about ncp-config, but i do not know how to access it.
thank you
eglider86
Posts: 50
Joined: Sat Mar 20, 2021 10:12 am

Re: Nextcloud backup/sync to NAS

Post by eglider86 »

one more question: is there any advantage/disadvantage of having the NC on system SD card where dietpi is installed, or better to migrate it "out of" the SD card?
User avatar
Joulinar
Posts: 5688
Joined: Sat Nov 16, 2019 12:49 am

Re: Nextcloud backup/sync to NAS

Post by Joulinar »

usually people have NC data located outside the SD card. This would increase the life time of your SD card as you don't have to much r/w operations. Usually HDD/SDD have more capacity as SD cards as well and their might be faster. Following your approach, you could create a Raid setup. For a Raid1 you would need 3 different disk at least. Probably a Raid0 would be sufficient. You could have a look to following guide on how to setup a raid using mdadm. Once done and the raid was created, you could move entire dietpi user data to that drive. This can be done easily using dietpi drive manager.

Best to my knowledge ncp-config is a config tool for NextCloudPi. This is a different application than NextCloud. It some sort of clone but dedicated to Raspberry Pi with some/other features. But don't ask me for a comparison what the differences are :D
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply