Best backup strategy for NextCloud?
-
Here's another backup option for file backups. It's called Restic.
https://restic.net/You can also backup to B2.
Here's the documentation too.
https://restic.readthedocs.io/en/stable/ -
This can be forked into a new thread if need be - For larger amounts of data in NC how are you all handling the backups? I have a script that backs up NC (database, nc folder, and data drive) to a dedicated NAS. At some point the offsite replication to a remote NAS will take too long and never catch up on a slower WAN link. Is there a recommended way to do incrementals of the NC data? Using rsync? From all my research, it seems like everyone does it different and there is no "best practice". I don't see the need to copy the entire data set for each backup - especially when sending the backup job offsite.
-
@brandon220 said in Best backup strategy for NextCloud?:
This can be forked into a new thread if need be - For larger amounts of data in NC how are you all handling the backups? I have a script that backs up NC (database, nc folder, and data drive) to a dedicated NAS. At some point the offsite replication to a remote NAS will take too long and never catch up on a slower WAN link. Is there a recommended way to do incrementals of the NC data? Using rsync? From all my research, it seems like everyone does it different and there is no "best practice". I don't see the need to copy the entire data set for each backup - especially when sending the backup job offsite.
Before backing up the database, nc folder and data drive, do you turn on maintenance mode first, backup and then turn it off after backup is complete?
-
@black3dynamite Yes. I also stop the httpd service even though it isn't necessary.
-
@black3dynamite said in Best backup strategy for NextCloud?:
Here's another backup option for file backups. It's called Restic.
https://restic.net/You can also backup to B2.
Here's the documentation too.
https://restic.readthedocs.io/en/stable/I did a blog post on using Restic to back up to OneDrive
-
@Obsolesce said in Best backup strategy for NextCloud?:
@black3dynamite said in Best backup strategy for NextCloud?:
Here's another backup option for file backups. It's called Restic.
https://restic.net/You can also backup to B2.
Here's the documentation too.
https://restic.readthedocs.io/en/stable/I did a blog post on using Restic to back up to OneDrive
Am I correct in saying rclone would not be needed if you had an nfs mount on the local server where restic is installed?
-
@Obsolesce I have restic working without rclone and it is fast and simple. Have to try and script it now.
-
@brandon220 said in Best backup strategy for NextCloud?:
@Obsolesce I have restic working without rclone and it is fast and simple. Have to try and script it now.
I used rclone in order to use OneDrive as a backup repository. It seemed like the easiest supported way to do it. How did you mount OneDrive without rclone? I'm sure there are more ways, just curious.
-
@Obsolesce Not using OneDrive. Using a NAS with a nfs share that is mounted via fstab.
-
@brandon220 said in Best backup strategy for NextCloud?:
@Obsolesce Not using OneDrive. Using a NAS with a nfs share that is mounted via fstab.
Ah i see, yeah rclone was only used so I could specifically back up to OneDrive. Nothing more.
-
For me, I'm doing a mysqldump of the database, then using rclone to copy the files, the mysqldump, and the /var/www/html folder over to Wasabi.