Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Move local backup to another server

Move local backup to another server

Scheduled Pinned Locked Moved Solved Support
backups
6 Posts 4 Posters 1.2k Views 4 Watching
  • 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.
    • J Offline
      J Offline
      jayonrails
      translator
      wrote on last edited by girish
      #1

      Hi,

      I have created a local backup on my server using the filesystem backup provider. Please see the docs here: https://docs.cloudron.io/backu…

      The backup is created using rsync, the idea behind is that it now backs up all the big things (Nextcloud, 160 GB) and later I can run it again and it just backup ups the small changes like some e-mails I got in between.

      What would be the best method to move these backups to a new server and what do I need to do to have the integrity of the files guaranteed? I think when using rsync, all backups have to be moved.

      I am happy to get some tipps from you!

      Best
      Jay

      girishG M 2 Replies Last reply
      1
      • J jayonrails marked this topic as a question on
      • J jayonrails

        Hi,

        I have created a local backup on my server using the filesystem backup provider. Please see the docs here: https://docs.cloudron.io/backu…

        The backup is created using rsync, the idea behind is that it now backs up all the big things (Nextcloud, 160 GB) and later I can run it again and it just backup ups the small changes like some e-mails I got in between.

        What would be the best method to move these backups to a new server and what do I need to do to have the integrity of the files guaranteed? I think when using rsync, all backups have to be moved.

        I am happy to get some tipps from you!

        Best
        Jay

        girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #2

        @jayonrails You can just rsync the timestamped directories. The "snapshot" directory need not be rsynced.

        But why not just backup remotely to start with ?

        1 Reply Last reply
        1
        • J jayonrails

          Hi,

          I have created a local backup on my server using the filesystem backup provider. Please see the docs here: https://docs.cloudron.io/backu…

          The backup is created using rsync, the idea behind is that it now backs up all the big things (Nextcloud, 160 GB) and later I can run it again and it just backup ups the small changes like some e-mails I got in between.

          What would be the best method to move these backups to a new server and what do I need to do to have the integrity of the files guaranteed? I think when using rsync, all backups have to be moved.

          I am happy to get some tipps from you!

          Best
          Jay

          M Offline
          M Offline
          michaelpope
          wrote on last edited by michaelpope
          #3

          @jayonrails Hey there,

          In general, the easiest thing to do is to do a remote backup by deafult, as girish said. If you aren't very familiar with Linux servers, it is probably best to stick with this. In terms of integrity... I don't think rsync provides any guarantees there. You might have to write something on your own. For prepping against an unlikely hack or malware, your best bet is to stick it on a backup storage provider that does snapshotting, like rsync.net (unlikely to happen though, as Cloudron takes security pretty seriously).

          However, if you need a local backup in addition to a remote backup, the easiest thing to probably do is to use Cloudron Backup in rsync mode to rsync to disk, and then to use restic to backup that directory to a backup storage service. Note that it is very important that the disk you rsync to is NOT the same one Cloudron is running on. If you are using a VPS provider, put it on one of their 'block storage' disks, or something like that.

          Having the local backup -> remote backup workflow helps in the sense that it's a lot quicker to do a backup locally than it is remotely, and restic packs those backups remotely really efficiently (and reasonably quickly too).

          This does require some knowledge on crontabs and scripting though. There are some forum posts on the general process. Here's one, though they backup to one drive:

          https://forum.cloudron.io/topic/6928/tutorial-remote-backup-of-local-cloudron-backup-snapshots-with-restic-rclone?_=1676593563170

          What I've done personally is used a CLI tool called autorestic to help manage the backups. Then I've written some short shells scripts that can do a restore, list backups, and mount backups as a drive (a feature of restic). This makes it easy for me to go through my backup's files, even though they are remote and encrypted, which is nice.

          You do take on a lot more responsibility doing it this way though, as you are responsible for the scripts - you are on your own to make sure things work. So best of luck to you, if you choose to do things this way :).

          necrevistonnezrN 1 Reply Last reply
          3
          • M michaelpope

            @jayonrails Hey there,

            In general, the easiest thing to do is to do a remote backup by deafult, as girish said. If you aren't very familiar with Linux servers, it is probably best to stick with this. In terms of integrity... I don't think rsync provides any guarantees there. You might have to write something on your own. For prepping against an unlikely hack or malware, your best bet is to stick it on a backup storage provider that does snapshotting, like rsync.net (unlikely to happen though, as Cloudron takes security pretty seriously).

            However, if you need a local backup in addition to a remote backup, the easiest thing to probably do is to use Cloudron Backup in rsync mode to rsync to disk, and then to use restic to backup that directory to a backup storage service. Note that it is very important that the disk you rsync to is NOT the same one Cloudron is running on. If you are using a VPS provider, put it on one of their 'block storage' disks, or something like that.

            Having the local backup -> remote backup workflow helps in the sense that it's a lot quicker to do a backup locally than it is remotely, and restic packs those backups remotely really efficiently (and reasonably quickly too).

            This does require some knowledge on crontabs and scripting though. There are some forum posts on the general process. Here's one, though they backup to one drive:

            https://forum.cloudron.io/topic/6928/tutorial-remote-backup-of-local-cloudron-backup-snapshots-with-restic-rclone?_=1676593563170

            What I've done personally is used a CLI tool called autorestic to help manage the backups. Then I've written some short shells scripts that can do a restore, list backups, and mount backups as a drive (a feature of restic). This makes it easy for me to go through my backup's files, even though they are remote and encrypted, which is nice.

            You do take on a lot more responsibility doing it this way though, as you are responsible for the scripts - you are on your own to make sure things work. So best of luck to you, if you choose to do things this way :).

            necrevistonnezrN Offline
            necrevistonnezrN Offline
            necrevistonnezr
            wrote on last edited by necrevistonnezr
            #4

            @michaelpope said in Move local backup to another server:

            @jayonrails Hey there,

            This does require some knowledge on crontabs and scripting though. There are some forum posts on the general process. Here's one, though they backup to one drive:

            https://forum.cloudron.io/topic/6928/tutorial-remote-backup-of-local-cloudron-backup-snapshots-with-restic-rclone?_=1676593563170

            Author of this post here: It‘s not specific to Onedrive at all - it‘s just the provider I chose when setting up the rclone repo. Rclone supports more or less all relevant storage providers currently 🙂

            Also interesting: Wrappers and GUIs built on top of restic: https://forum.restic.net/t/tools-on-top-of-restic/4956/

            1 Reply Last reply
            3
            • girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #5

              For backup integrity, we are working on this - https://forum.cloudron.io/topic/8269/what-s-coming-in-7-4 . What we mean by integrity is: currently, Cloudron lacks a way to figure if the backup is incomplete or if the files have been tampered (not just for security, but accidentally or bit rotting). Idea is to keep track of what has been backed up - essentially a signed digest file.

              1 Reply Last reply
              4
              • girishG girish referenced this topic on
              • G guyds referenced this topic on
              • girishG girish referenced this topic on
              • jdaviescoatesJ jdaviescoates referenced this topic on
              • girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #6

                Fixed in 7.5.1

                1 Reply Last reply
                1
                • girishG girish has marked this topic as solved on
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Bookmarks
                  • Search