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. Discuss
  3. [OT] Hetzner Box night backup takes 6 hours?!

[OT] Hetzner Box night backup takes 6 hours?!

Scheduled Pinned Locked Moved Discuss
24 Posts 6 Posters 1.7k Views 6 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.
  • andreasduerenA andreasdueren

    @p44 said in [OT] Hetzner Box night backup takes 6 hours?!:

    @jdaviescoates Interesting... I have to say that I have backup on two different data centers, from Nuremberg to Helsinki

    I do the same and have excellent performance. Try SSH

    P Offline
    P Offline
    p44
    translator
    wrote on last edited by
    #11

    @andreasdueren Thanks I will test

    1 Reply Last reply
    1
    • J Online
      J Online
      joseph
      Staff
      wrote on last edited by
      #12

      As @andreasdueren suggested, use sshfs when possible with hetzner storage box. The remote copy is pretty much instantaneous because the code sshs into the server and executes a copy command.

      P J 2 Replies Last reply
      2
      • J joseph

        As @andreasdueren suggested, use sshfs when possible with hetzner storage box. The remote copy is pretty much instantaneous because the code sshs into the server and executes a copy command.

        P Offline
        P Offline
        p44
        translator
        wrote on last edited by
        #13

        Thanks @joseph I'll follow these advices

        1 Reply Last reply
        0
        • J joseph

          As @andreasdueren suggested, use sshfs when possible with hetzner storage box. The remote copy is pretty much instantaneous because the code sshs into the server and executes a copy command.

          J Offline
          J Offline
          jayonrails
          translator
          wrote on last edited by
          #14

          @joseph said in [OT] Hetzner Box night backup takes 6 hours?!:

          As @andreasdueren suggested, use sshfs when possible with hetzner storage box. The remote copy is pretty much instantaneous because the code sshs into the server and executes a copy command.

          What would the exact configuration look like?
          Can you share yours?

          1 Reply Last reply
          1
          • andreasduerenA Offline
            andreasduerenA Offline
            andreasdueren
            wrote on last edited by andreasdueren
            #15

            @jayonrails Sure:

            Storage Provider: SSHFS Mount
            Server IP or Hostname (sshfs): uxxxxxx.your-storagebox.de
            Remote Directory (sshfs): /home
            Port: 23
            User: uxxxxxx-sub2 # I use a sub account
            Private Key: set # Make sure to upload the respective public key to the directory
            Prefix: empty
            Storage Format: rsync
            Encryption Password (optional): set

            P 1 Reply Last reply
            2
            • andreasduerenA andreasdueren

              @jayonrails Sure:

              Storage Provider: SSHFS Mount
              Server IP or Hostname (sshfs): uxxxxxx.your-storagebox.de
              Remote Directory (sshfs): /home
              Port: 23
              User: uxxxxxx-sub2 # I use a sub account
              Private Key: set # Make sure to upload the respective public key to the directory
              Prefix: empty
              Storage Format: rsync
              Encryption Password (optional): set

              P Offline
              P Offline
              p44
              translator
              wrote on last edited by p44
              #16

              @andreasdueren In SSHFS Cloudron help page I read "When using Hetzner Storage Box, the Remote Directory is /home for the main account. We have found sub accounts to be unreliable with SSHFS. We recommend using CIFS instead if you want to use subaccounts."

              Did you have some problems with hetzner sub accounts?

              Also, when you write "Make sure to upload the respective public key to the directory", what do you mean exactly? In "Private Key" field what I have to paste? Then, what I have to put in directory you mention? Do you mean Hetzner sub account directory?

              Edit: @andreasdueren I found something here about Ssh Key

              Thanks for your time!

              jdaviescoatesJ andreasduerenA 2 Replies Last reply
              1
              • P p44

                @andreasdueren In SSHFS Cloudron help page I read "When using Hetzner Storage Box, the Remote Directory is /home for the main account. We have found sub accounts to be unreliable with SSHFS. We recommend using CIFS instead if you want to use subaccounts."

                Did you have some problems with hetzner sub accounts?

                Also, when you write "Make sure to upload the respective public key to the directory", what do you mean exactly? In "Private Key" field what I have to paste? Then, what I have to put in directory you mention? Do you mean Hetzner sub account directory?

                Edit: @andreasdueren I found something here about Ssh Key

                Thanks for your time!

                jdaviescoatesJ Offline
                jdaviescoatesJ Offline
                jdaviescoates
                wrote on last edited by jdaviescoates
                #17

                @p44 said in [OT] Hetzner Box night backup takes 6 hours?!:

                Edit: @andreasdueren I found something here about Ssh Key

                This is a key bit of info there:

                As an alternative, with the parameter -f, you can specify a different file path.

                So, on you local machine use that to generate a pair of keys in e.g. ./ssh-backups/ (instead of over writing what is in ./ssh/ ) then follow the instructions to upload the id_rsa.pub public key file onto the Storage Box and paste the id_rsa private key into the config box.

                To be triply clear this is what I do:

                On your local machine:

                1. mkdir ~/.ssh-backups
                2. ssh-keygen -f ~/.ssh-backups/id_rsa
                3. cat ~/.ssh-backups/id_rsa.pub | ssh -p23 uXXXXX@uXXXXX.your-storagebox.de install-ssh-key

                NOTE: of course that final command will only work if you've already got SSH enabled on your Hetzner Storage Box via the settings here https://robot.hetzner.com/storage 2cbc45ec-1a07-4358-a822-f34d344ac971-image.png

                Via the Cloudron UI when setting up a backup location (or e.g. a volume as the case may be):

                1. Paste the contents of ~/.ssh-backups/id_rsa into the Private Key field here

                cfce0a95-f545-483b-9bd7-82aae84ada0d-image.png

                It took ages to work that out, but it's easy once you know how.

                I also then store both keys in my VaultWarden in case I need them again.

                I use Cloudron with Gandi & Hetzner

                1 Reply Last reply
                3
                • P p44

                  @andreasdueren In SSHFS Cloudron help page I read "When using Hetzner Storage Box, the Remote Directory is /home for the main account. We have found sub accounts to be unreliable with SSHFS. We recommend using CIFS instead if you want to use subaccounts."

                  Did you have some problems with hetzner sub accounts?

                  Also, when you write "Make sure to upload the respective public key to the directory", what do you mean exactly? In "Private Key" field what I have to paste? Then, what I have to put in directory you mention? Do you mean Hetzner sub account directory?

                  Edit: @andreasdueren I found something here about Ssh Key

                  Thanks for your time!

                  andreasduerenA Offline
                  andreasduerenA Offline
                  andreasdueren
                  wrote on last edited by
                  #18

                  @p44 No Problems with the sub account whatsoever

                  1 Reply Last reply
                  1
                  • P Offline
                    P Offline
                    p44
                    translator
                    wrote on last edited by
                    #19

                    Thanks a lot @jdaviescoates @andreasdueren 👏👏

                    jdaviescoatesJ 1 Reply Last reply
                    2
                    • P p44

                      Thanks a lot @jdaviescoates @andreasdueren 👏👏

                      jdaviescoatesJ Offline
                      jdaviescoatesJ Offline
                      jdaviescoates
                      wrote on last edited by
                      #20

                      @p44 I updated my post above with a few more details 🙂

                      I use Cloudron with Gandi & Hetzner

                      P 1 Reply Last reply
                      0
                      • jdaviescoatesJ Offline
                        jdaviescoatesJ Offline
                        jdaviescoates
                        wrote on last edited by
                        #21

                        But, for the record, I updated my backups config to use SSHFS instead of CIFS earlier and it seem using Tarball backups SSHFS isn't any faster at all. If anything it seems like perhaps it's a bit slower (at least the one that ran tonight was slower than 6 out of 8 of the last CIFS backups). I've read on here that rsync backups are much faster with SSHFS though.

                        I'm looking forward to when we can do multiple backup locations, which I'm hoping will allow me to do rsync to one destination and tarball to another.

                        I use Cloudron with Gandi & Hetzner

                        robiR P 2 Replies Last reply
                        1
                        • jdaviescoatesJ jdaviescoates

                          But, for the record, I updated my backups config to use SSHFS instead of CIFS earlier and it seem using Tarball backups SSHFS isn't any faster at all. If anything it seems like perhaps it's a bit slower (at least the one that ran tonight was slower than 6 out of 8 of the last CIFS backups). I've read on here that rsync backups are much faster with SSHFS though.

                          I'm looking forward to when we can do multiple backup locations, which I'm hoping will allow me to do rsync to one destination and tarball to another.

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

                          @jdaviescoates the rsync may be doing a 'cat' stream over ssh vs the tgz having to complete locally before transferring.

                          Hmm, wasn't there a way to do that with tgz as well?

                          Conscious tech

                          1 Reply Last reply
                          1
                          • jdaviescoatesJ jdaviescoates

                            @p44 I updated my post above with a few more details 🙂

                            P Offline
                            P Offline
                            p44
                            translator
                            wrote on last edited by
                            #23

                            wow @jdaviescoates great!!! I really appreciate.

                            1 Reply Last reply
                            1
                            • jdaviescoatesJ jdaviescoates

                              But, for the record, I updated my backups config to use SSHFS instead of CIFS earlier and it seem using Tarball backups SSHFS isn't any faster at all. If anything it seems like perhaps it's a bit slower (at least the one that ran tonight was slower than 6 out of 8 of the last CIFS backups). I've read on here that rsync backups are much faster with SSHFS though.

                              I'm looking forward to when we can do multiple backup locations, which I'm hoping will allow me to do rsync to one destination and tarball to another.

                              P Offline
                              P Offline
                              p44
                              translator
                              wrote on last edited by
                              #24

                              @jdaviescoates said in [OT] Hetzner Box night backup takes 6 hours?!:

                              I'm looking forward to when we can do multiple backup locations, which I'm hoping will allow me to do rsync to one destination and tarball to another.

                              Yes, waiting for multiple backup locations.

                              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