ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Best backup strategy for NextCloud?

    IT Discussion
    9
    23
    5.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • black3dynamiteB
      black3dynamite @Emad R
      last edited by

      @emad-r said in Best backup strategy for NextCloud?:

      @guyinpv

      The thing is and most people forgot with NC is depends on the user to put the files in the NC folder that gets created, if the user does not put the files into the sync folder nothing gets backed up.

      I am saying this right ? or there is way to force backup ? like mapping the sync folder to C:\Users. But that is not what NC is made for ...

      My theory is if you create NC folder for users in the desktop, and they dont use it = no backups.

      To make it transparent, you can create a junction point instead. That way it makes backing up easier.

      1 Reply Last reply Reply Quote 0
      • guyinpvG
        guyinpv
        last edited by

        I'm left with these options then:

        1. VULTR daily backup, only keeps 2. It can only be restored by recreating the entire node, no partial recovery.

        2. A server script to send incremental backups of just the files off to B2 or wherever. These couldn't do full restores of the node, or NC itself.

        3. A server script to do the "official" backup procedure of NC and send off to B2 or wherever. This might be the most flexible and normal solution, but I don't like having to keep so many copies of the entire file store if I can help it. It could be used to restore NC itself in the event the software is hacked or an update screws it up thoroughly (although this would not happen, as I take snapshots before those kinds of updates, I would restore the snapshot instead).

        4. Use my local workstation to pull daily or 2x daily incremental file backups onto our local NAS. This could only be used to find accidentally-deleted files that are not in the NC trash bin but it couldn't restore the server, or NC software directly.

        At the end of the day, it's all about the files. If I have to rebuild a VPS and install NC from scratch, so be it, as long as I have the most recent copy of files possible to upload back to it. The second concern is fastest turnaround for people to keep working and use the files. In fact, having the files backed up via a workstation to the NAS is probably the fastest way people can get back to work, because I can just shared the NAS folder internally as I fix everything.

        1 Reply Last reply Reply Quote 0
        • black3dynamiteB
          black3dynamite
          last edited by

          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/

          ObsolesceO 1 Reply Last reply Reply Quote 3
          • brandon220B
            brandon220
            last edited by

            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.

            black3dynamiteB 1 Reply Last reply Reply Quote 0
            • black3dynamiteB
              black3dynamite @brandon220
              last edited by

              @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?

              brandon220B 1 Reply Last reply Reply Quote 0
              • brandon220B
                brandon220 @black3dynamite
                last edited by

                @black3dynamite Yes. I also stop the httpd service even though it isn't necessary.

                1 Reply Last reply Reply Quote 0
                • ObsolesceO
                  Obsolesce @black3dynamite
                  last edited by

                  @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 🙂

                  brandon220B 1 Reply Last reply Reply Quote 0
                  • brandon220B
                    brandon220 @Obsolesce
                    last edited by

                    @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?

                    brandon220B 1 Reply Last reply Reply Quote 0
                    • brandon220B
                      brandon220 @brandon220
                      last edited by

                      @Obsolesce I have restic working without rclone and it is fast and simple. Have to try and script it now.

                      ObsolesceO 1 Reply Last reply Reply Quote 0
                      • ObsolesceO
                        Obsolesce @brandon220
                        last edited by

                        @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.

                        brandon220B 1 Reply Last reply Reply Quote 0
                        • brandon220B
                          brandon220 @Obsolesce
                          last edited by

                          @Obsolesce Not using OneDrive. Using a NAS with a nfs share that is mounted via fstab.

                          ObsolesceO 1 Reply Last reply Reply Quote 0
                          • ObsolesceO
                            Obsolesce @brandon220
                            last edited by

                            @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.

                            1 Reply Last reply Reply Quote 0
                            • dafyreD
                              dafyre
                              last edited by

                              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.

                              1 Reply Last reply Reply Quote 3
                              • 1
                              • 2
                              • 1 / 2
                              • First post
                                Last post