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.6k 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.
  • P Offline
    P Offline
    p44
    translator
    wrote on last edited by
    #1

    Hello all,

    I know I should address this question to Hetzner directly, but chances are someone here has had – or is having – this problem.

    I have two scheduled backups, one at 2:00 PM and one at 2:00 AM. The 2:00 PM backup takes about 30 minutes, 45 max. The 2:00 AM backup takes 6, 7 hours. Other night I connected while backing up and it seems that Hetzner was limiting the bandwidth to 1 Mbit per second. Data to backup is around 70 Gb.

    Has something similar happened to you?

    Thanks a lot

    alt text

    alt text

    andreasduerenA 1 Reply Last reply
    0
    • P p44

      Hello all,

      I know I should address this question to Hetzner directly, but chances are someone here has had – or is having – this problem.

      I have two scheduled backups, one at 2:00 PM and one at 2:00 AM. The 2:00 PM backup takes about 30 minutes, 45 max. The 2:00 AM backup takes 6, 7 hours. Other night I connected while backing up and it seems that Hetzner was limiting the bandwidth to 1 Mbit per second. Data to backup is around 70 Gb.

      Has something similar happened to you?

      Thanks a lot

      alt text

      alt text

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

      @p44 How and what did you mount here? Looks like you are using an extra volume in the virtual environment as a backup solution. Personally I use a storage box mounted via SSH which is significantly cheaper and pretty fast.

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

        @andreasdueren Thanks for your answer. Hetzner Storage Box is mounted directly in /etc/fstab. This is an old way used to mount Hetzner Box, via Common Internet File System (CIFS), before Cloudron released UI.

        The point is that in the day time backup takes 30-45 minutes, night time till 7 hours...

        andreasduerenA jdaviescoatesJ 2 Replies Last reply
        1
        • P p44

          @andreasdueren Thanks for your answer. Hetzner Storage Box is mounted directly in /etc/fstab. This is an old way used to mount Hetzner Box, via Common Internet File System (CIFS), before Cloudron released UI.

          The point is that in the day time backup takes 30-45 minutes, night time till 7 hours...

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

          @p44 Did you try SSH yet?

          P 1 Reply Last reply
          2
          • P p44

            @andreasdueren Thanks for your answer. Hetzner Storage Box is mounted directly in /etc/fstab. This is an old way used to mount Hetzner Box, via Common Internet File System (CIFS), before Cloudron released UI.

            The point is that in the day time backup takes 30-45 minutes, night time till 7 hours...

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

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

            The point is that in the day time backup takes 30-45 minutes, night time till 7 hours...

            Strange.

            I'm actually still on an old CIFS mount for my backup too (although I've moved to SSHFS for my volumes).

            I'm using 397 GB of disk space and my night time backups normally take around 2.5-3.5 hours (although once recently it was about 6 hours).

            I use Cloudron with Gandi & Hetzner

            P 1 Reply Last reply
            1
            • andreasduerenA andreasdueren

              @p44 Did you try SSH yet?

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

              @andreasdueren Maybe in future I will try Ssh, do you have better performances?

              jdaviescoatesJ 1 Reply Last reply
              0
              • jdaviescoatesJ jdaviescoates

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

                The point is that in the day time backup takes 30-45 minutes, night time till 7 hours...

                Strange.

                I'm actually still on an old CIFS mount for my backup too (although I've moved to SSHFS for my volumes).

                I'm using 397 GB of disk space and my night time backups normally take around 2.5-3.5 hours (although once recently it was about 6 hours).

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

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

                andreasduerenA 1 Reply Last reply
                0
                • P p44

                  @andreasdueren Maybe in future I will try Ssh, do you have better performances?

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

                  @p44 I think others on the forum have reported much faster rsync backups with sshfs.

                  I don't currently use rsync for backups myself.

                  I use Cloudron with Gandi & Hetzner

                  P 1 Reply Last reply
                  0
                  • jdaviescoatesJ jdaviescoates

                    @p44 I think others on the forum have reported much faster rsync backups with sshfs.

                    I don't currently use rsync for backups myself.

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

                    @jdaviescoates Thanks. I have never never had any problems with current setup, but for about 20 days now I have had this night and day speed difference.

                    1 Reply Last reply
                    0
                    • P p44

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

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

                      @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 1 Reply Last reply
                      1
                      • 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 Offline
                          J Offline
                          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
                                          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