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. Are (encrypted) rsync backups not "incremental" on B2?

Are (encrypted) rsync backups not "incremental" on B2?

Scheduled Pinned Locked Moved Solved Support
backblazersyncbackups
16 Posts 4 Posters 2.3k 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.
    • necrevistonnezrN Offline
      necrevistonnezrN Offline
      necrevistonnezr
      wrote on last edited by girish
      #1

      I switched from a local backup + rclone to B2, using encrypted rsync backups.
      Are those backups not incremental? It finished the first backup this morning with around 300 GB and I hit backup again an hour later - now it's at 21 % and added another 80 GB of backups...
      Can that be right?

      girishG robiR 2 Replies Last reply
      0
      • necrevistonnezrN necrevistonnezr

        I switched from a local backup + rclone to B2, using encrypted rsync backups.
        Are those backups not incremental? It finished the first backup this morning with around 300 GB and I hit backup again an hour later - now it's at 21 % and added another 80 GB of backups...
        Can that be right?

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

        @necrevistonnezr Does it say 'uploading' or 'copying' ? Also, how do you know it added 80GB of backups btw? Did you see that number in backblaze?

        necrevistonnezrN 1 Reply Last reply
        0
        • girishG girish

          @necrevistonnezr Does it say 'uploading' or 'copying' ? Also, how do you know it added 80GB of backups btw? Did you see that number in backblaze?

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

          @girish it said "copying" and I followed the increase of those numbers in Backblaze.

          girishG 1 Reply Last reply
          0
          • necrevistonnezrN necrevistonnezr

            I switched from a local backup + rclone to B2, using encrypted rsync backups.
            Are those backups not incremental? It finished the first backup this morning with around 300 GB and I hit backup again an hour later - now it's at 21 % and added another 80 GB of backups...
            Can that be right?

            robiR Offline
            robiR Offline
            robi
            wrote on last edited by
            #4

            @necrevistonnezr how are you using rclone?

            Conscious tech

            necrevistonnezrN 1 Reply Last reply
            0
            • robiR robi

              @necrevistonnezr how are you using rclone?

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

              @robi said in Are (encrypted) rsync backups not "incremental" on B2?:

              @necrevistonnezr how are you using rclone?

              I used to (and might switch back to) backup to the file system via rsync and hardlinks and then the snapshot folder gets synced encrypted to Onedrive (where I have 1 TB laying around from an O365 subscription):

              #!/bin/bash
              d=$(date +%Y-%m-%d)
              if pidof -o %PPID -x “$0”; then
              echo “$(date “+%d.%m.%Y %T”) Exit, already running.”
              exit 1
              fi
              rclone sync /media/CloudronBackup/snapshot odcrypt: -v --log-file=/media/"$d"_rclone-upload.log
              

              whereas odcrypt is an encrypted version of the onedrive repository configured in rclone.

              Has the added big bonus that I can just
              rclone mount odcrypt /path/to/local/mount to access the unencrypted content of the backup

              Has the further added bonus that the backup itself takes minutes, the upload then works in the background. Drawback: You have two copies of everything in you local filesystem.

              Why only the snapshot folder? rclone does not do hardlinks. unfortunately. But maybe there are work arounds I haven't thought of or tried yet, e.g.: https://forum.rclone.org/t/rclone-hardlinked-incremental-backups-onedrive/17563

              Ubuntu comes with an old version of rclone so install the newest! curl https://rclone.org/install.sh | sudo bash

              robiR 1 Reply Last reply
              0
              • necrevistonnezrN necrevistonnezr

                @robi said in Are (encrypted) rsync backups not "incremental" on B2?:

                @necrevistonnezr how are you using rclone?

                I used to (and might switch back to) backup to the file system via rsync and hardlinks and then the snapshot folder gets synced encrypted to Onedrive (where I have 1 TB laying around from an O365 subscription):

                #!/bin/bash
                d=$(date +%Y-%m-%d)
                if pidof -o %PPID -x “$0”; then
                echo “$(date “+%d.%m.%Y %T”) Exit, already running.”
                exit 1
                fi
                rclone sync /media/CloudronBackup/snapshot odcrypt: -v --log-file=/media/"$d"_rclone-upload.log
                

                whereas odcrypt is an encrypted version of the onedrive repository configured in rclone.

                Has the added big bonus that I can just
                rclone mount odcrypt /path/to/local/mount to access the unencrypted content of the backup

                Has the further added bonus that the backup itself takes minutes, the upload then works in the background. Drawback: You have two copies of everything in you local filesystem.

                Why only the snapshot folder? rclone does not do hardlinks. unfortunately. But maybe there are work arounds I haven't thought of or tried yet, e.g.: https://forum.rclone.org/t/rclone-hardlinked-incremental-backups-onedrive/17563

                Ubuntu comes with an old version of rclone so install the newest! curl https://rclone.org/install.sh | sudo bash

                robiR Offline
                robiR Offline
                robi
                wrote on last edited by
                #6

                @necrevistonnezr oh that is great, and I want to set up something similar, more on that later.

                Are you aware that tar has an incremental mode?

                Then the local copy is just the tiny changes from the initial and the upload is also tiny.

                Is odcrypt a feature of onedrive or rclone? What is the performance hit using it?

                Have you been able to mount things like googledrive with the latest rclone?

                I have a large gdrive and would love to point some mounted volumes there for Apps that store a large amount of (video) data.

                Conscious tech

                necrevistonnezrN 1 Reply Last reply
                0
                • robiR robi

                  @necrevistonnezr oh that is great, and I want to set up something similar, more on that later.

                  Are you aware that tar has an incremental mode?

                  Then the local copy is just the tiny changes from the initial and the upload is also tiny.

                  Is odcrypt a feature of onedrive or rclone? What is the performance hit using it?

                  Have you been able to mount things like googledrive with the latest rclone?

                  I have a large gdrive and would love to point some mounted volumes there for Apps that store a large amount of (video) data.

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

                  @robi said in Are (encrypted) rsync backups not "incremental" on B2?:

                  @necrevistonnezr oh that is great, and I want to set up something similar, more on that later.

                  Are you aware that tar has an incremental mode?
                  Then the local copy is just the tiny changes from the initial and the upload is also tiny.

                  No, is that built-in into Cloudron's backup?

                  Is odcrypt a feature of onedrive or rclone? What is the performance hit using it?

                  odcrypt is just a random name I gave it. You first configure onedrive or google drive or whatever (https://rclone.org/docs/) and then configure encrpytion (https://rclone.org/crypt/). I haven't seen (albeit not checked, either) a performance hit.

                  Have you been able to mount things like googledrive with the latest rclone?

                  I can mount Onedrive encrypted without problem, so Google Drive should work as it's supported (https://rclone.org/commands/rclone_mount/)

                  robiR 1 Reply Last reply
                  0
                  • necrevistonnezrN necrevistonnezr

                    @girish it said "copying" and I followed the increase of those numbers in Backblaze.

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

                    @necrevistonnezr Ah ok, so it is sort of working as the code is designed. Currently, rsync is optimizing on uploads and only uploading incremental changes. But the final storage is not incremental, every backup (i.e timestamped directory in the remote) is a full complete standalone backup.

                    necrevistonnezrN 1 Reply Last reply
                    0
                    • necrevistonnezrN necrevistonnezr

                      @robi said in Are (encrypted) rsync backups not "incremental" on B2?:

                      @necrevistonnezr oh that is great, and I want to set up something similar, more on that later.

                      Are you aware that tar has an incremental mode?
                      Then the local copy is just the tiny changes from the initial and the upload is also tiny.

                      No, is that built-in into Cloudron's backup?

                      Is odcrypt a feature of onedrive or rclone? What is the performance hit using it?

                      odcrypt is just a random name I gave it. You first configure onedrive or google drive or whatever (https://rclone.org/docs/) and then configure encrpytion (https://rclone.org/crypt/). I haven't seen (albeit not checked, either) a performance hit.

                      Have you been able to mount things like googledrive with the latest rclone?

                      I can mount Onedrive encrypted without problem, so Google Drive should work as it's supported (https://rclone.org/commands/rclone_mount/)

                      robiR Offline
                      robiR Offline
                      robi
                      wrote on last edited by
                      #9

                      @necrevistonnezr said

                      No, is that built-in into Cloudron's backup?

                      No, but if you test it and provide results, it may get added.

                      I can mount Onedrive encrypted without problem, so Google Drive should work as it's supported (https://rclone.org/commands/rclone_mount/)

                      Perfect, I have to get to this soon, thanks for the detail!

                      Conscious tech

                      necrevistonnezrN 1 Reply Last reply
                      0
                      • girishG girish

                        @necrevistonnezr Ah ok, so it is sort of working as the code is designed. Currently, rsync is optimizing on uploads and only uploading incremental changes. But the final storage is not incremental, every backup (i.e timestamped directory in the remote) is a full complete standalone backup.

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

                        @girish said in Are (encrypted) rsync backups not "incremental" on B2?:

                        @necrevistonnezr Ah ok, so it is sort of working as the code is designed. Currently, rsync is optimizing on uploads and only uploading incremental changes. But the final storage is not incremental, every backup (i.e timestamped directory in the remote) is a full complete standalone backup.

                        So that would result in huge amounts of space on the remote backup facility if you choose a certain retention, in my case (3 daily, 4 weekly, 6 monthly) something like 15 x 300 GB = 4,5 TB(!), correct?.

                        It would be great if there was some deduplication done beforehand...? Or is using the --copy-destoption? (see some discussion here: https://www.linuxquestions.org/questions/linux-server-73/incremental-backups-with-rsync-link-dest-4175603276/)

                        girishG 1 Reply Last reply
                        2
                        • robiR robi

                          @necrevistonnezr said

                          No, is that built-in into Cloudron's backup?

                          No, but if you test it and provide results, it may get added.

                          I can mount Onedrive encrypted without problem, so Google Drive should work as it's supported (https://rclone.org/commands/rclone_mount/)

                          Perfect, I have to get to this soon, thanks for the detail!

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

                          @robi BTW restic works with rclone, meaning you can use restic on anything that rclone can access (which is quite a lot, though restic already works with many cloud providers out of the box...

                          robiR 1 Reply Last reply
                          0
                          • necrevistonnezrN necrevistonnezr

                            @robi BTW restic works with rclone, meaning you can use restic on anything that rclone can access (which is quite a lot, though restic already works with many cloud providers out of the box...

                            robiR Offline
                            robiR Offline
                            robi
                            wrote on last edited by
                            #12

                            @necrevistonnezr oh sweet, wasn't familiar with restic. And sure makes sense, if rclone can mount it, restic can backup to it.

                            It sounds like @staff should take a look at restic+rclone for greatly enhancing backups in Cloudron with minimal work!

                            We'd also get double free dedupe (once with restic and once on the target side with rclone) and minimal incremental backups, so efficient! ❤

                            Conscious tech

                            1 Reply Last reply
                            1
                            • necrevistonnezrN necrevistonnezr

                              @girish said in Are (encrypted) rsync backups not "incremental" on B2?:

                              @necrevistonnezr Ah ok, so it is sort of working as the code is designed. Currently, rsync is optimizing on uploads and only uploading incremental changes. But the final storage is not incremental, every backup (i.e timestamped directory in the remote) is a full complete standalone backup.

                              So that would result in huge amounts of space on the remote backup facility if you choose a certain retention, in my case (3 daily, 4 weekly, 6 monthly) something like 15 x 300 GB = 4,5 TB(!), correct?.

                              It would be great if there was some deduplication done beforehand...? Or is using the --copy-destoption? (see some discussion here: https://www.linuxquestions.org/questions/linux-server-73/incremental-backups-with-rsync-link-dest-4175603276/)

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

                              @necrevistonnezr said in Are (encrypted) rsync backups not "incremental" on B2?:

                              So that would result in huge amounts of space on the remote backup facility if you choose a certain retention, in my case (3 daily, 4 weekly, 6 monthly) something like 15 x 300 GB = 4,5 TB(!), correct?.

                              That's correct. There is no de-duplication on the backend.

                              necrevistonnezrN 1 Reply Last reply
                              1
                              • girishG girish

                                @necrevistonnezr said in Are (encrypted) rsync backups not "incremental" on B2?:

                                So that would result in huge amounts of space on the remote backup facility if you choose a certain retention, in my case (3 daily, 4 weekly, 6 monthly) something like 15 x 300 GB = 4,5 TB(!), correct?.

                                That's correct. There is no de-duplication on the backend.

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

                                @girish
                                Thanks! You should seriously check out restic.

                                • The daily incremental backups I set up consume 200 MB if I changed 200 MBs over a day on a 300 GB repository.
                                • Takes 20 Minutes.
                                • Backups are encrypted.
                                • Many providers built in, the rest works via rclone. Backups are mountable for easy access to individual files.
                                marcusquinnM 1 Reply Last reply
                                1
                                • necrevistonnezrN necrevistonnezr

                                  @girish
                                  Thanks! You should seriously check out restic.

                                  • The daily incremental backups I set up consume 200 MB if I changed 200 MBs over a day on a 300 GB repository.
                                  • Takes 20 Minutes.
                                  • Backups are encrypted.
                                  • Many providers built in, the rest works via rclone. Backups are mountable for easy access to individual files.
                                  marcusquinnM Offline
                                  marcusquinnM Offline
                                  marcusquinn
                                  wrote on last edited by
                                  #15

                                  @necrevistonnezr said in Are (encrypted) rsync backups not "incremental" on B2?:

                                  restic

                                  Interesting, their sponsors platform looks interesting too: https://appscode.com/

                                  Web Design https://www.evergreen.je
                                  Development https://brandlight.org
                                  Life https://marcusquinn.com

                                  1 Reply Last reply
                                  0
                                  • girishG Offline
                                    girishG Offline
                                    girish
                                    Staff
                                    wrote on last edited by
                                    #16

                                    For restic, can you upvote here - https://forum.cloudron.io/topic/1575/backup-improvements-restic-backend ? It should be possible to add a new restic backend like tgz/rsync. Though, we still have to figure out how we can "support" it. But that's a separate topic.

                                    1 Reply Last reply
                                    1
                                    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