Skip to main content

Transfer backup to Storagebox

Comments

28 comments

  • cPRex Jurassic Moderator
    Hey there! There isn't an official cPanel guide for Hetzner, as this isn't one of our officially-supported remote locations:
    0
  • samuelmf
    Thanks for reply CpRex Actually i'm connected to my storagebox from whm as an additional destination, by sftp, the whm stored the backup on the storagebox succesfully, but the problem is that i cannot connect by rsync and ssh using ssh keys.
    0
  • cPRex Jurassic Moderator
    Are you able to connect to the remote destination on the command line as a user with SSH access? That would be the first thing I'd check regarding the rsync and SSH key issues - if it doesn't work directly on the command line as your user, it won't work from the backup tool.
    0
  • samuelmf
    I'm able to connect by SFTP, when i try to ssh by Xshell, the server ask for user and then for password, and then it remains on black screen, if i press enter i get the message the server sends a disconnection packet. Host 'u301424.your-storagebox.de' resolved to 142.132.153.141. Connecting to 142.132.153.141:22... Connection established. To escape to local shell, press 'Ctrl+Alt+]'. WARNING! The remote SSH server rejected X11 forwarding request. If i enter from one of my cpanel servers cli [root@core ~]# sftp -P23 u301424@u301424.your-storagebox.de u301424@u301424.your-storagebox.de's password: Connected to u301424.your-storagebox.de. sftp> I tryed with ssh keys, i already generated the ssh keys on my cpanel server, authorized the public hey, i uploaded it to .ssh folder of my storagebox but seems that i0m doing something wrong
    0
  • cPRex Jurassic Moderator
    So when you try a connection with "ssh -i /path/to/ssh/key username@IPaddress" that doesn't work?
    0
  • samuelmf
    Is this correct? ssh -i /root/.ssh/sce01root u301424@u301424.your-storagebox.de
    0
  • cPRex Jurassic Moderator
    If "sce01root" is the name of your SSH key, and it is placed in /root, then yes.
    0
  • samuelmf
    Yes my key name is sce01root [root@core ~]# ssh -i /root/.ssh/sce01root.pub u301424@u301424.your-storagebox.de @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0644 for '/root/.ssh/sce01root.pub' are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored. Load key "/root/.ssh/sce01root.pub": bad permissions u301424@u301424.your-storagebox.de's password: PTY allocation request failed on channel 0 shell request failed on channel 0 [root@core ~]#
    0
  • cPRex Jurassic Moderator
    That looks normal to me except for two things: -you'll want to change the permissions on the key file to 644 -you don't seem to have the key setup correctly on the destination machine or else it wouldn't ask for a password
    0
  • samuelmf
    This is what happens if i remove .pub from keyfile name [root@core ~]# ssh -i /root/.ssh/sce01root u301424@u301424.your-storagebox.de Enter passphrase for key '/root/.ssh/sce01root': u301424@u301424.your-storagebox.de's password: PTY allocation request failed on channel 0 shell request failed on channel 0 [root@core ~]#
    0
  • cPRex Jurassic Moderator
    Each key is a pair - you'll have key_name and also key_name.pub. The ".pub" version is the public key, which goes on the remote system you are connecting to. The key_name file is the private key that is kept on your local system.
    0
  • Spirogg
    Yes my key name is sce01root [root@core ~]# ssh -i /root/.ssh/sce01root.pub u301424@u301424.your-storagebox.de @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0644 for '/root/.ssh/sce01root.pub' are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored. Load key "/root/.ssh/sce01root.pub": bad permissions u301424@u301424.your-storagebox.de's password: PTY allocation request failed on channel 0 shell request failed on channel 0 [root@core ~]#

    try chmod 400 ~/root/.ssh/sce01root.pub or chmod 400 ~/.ssh/sce01root.pub
    0
  • samuelmf
    Sorry for paste screen shots, this is what i generated
    0
  • samuelmf
    Im following this tuto steps Backup Space SSH Keys - Hetzner Docs [root@core .ssh]# echo -e "mkdir .ssh \n chmod 700 .ssh \n put storagebox_authorized_keys .ssh/authorized_keys \n chmod 600 .ssh/authorized_keys" | sftp Connected to u301424.your-storagebox.de. sftp> mkdir .ssh Couldn't create directory: Failure sftp> chmod 700 .ssh Changing mode on /.ssh sftp> put storagebox_authorized_keys .ssh/authorized_keys Uploading storagebox_authorized_keys to /.ssh/authorized_keys storagebox_authorized_keys 100% 382 2.6KB/s 00:00 sftp> chmod 600 .ssh/authorized_keys Changing mode on /.ssh/authorized_keys [root@core .ssh]#
    0
  • cPRex Jurassic Moderator
    Thanks for that output. With that information, it sounds like you need to contact Hetzner to see why you can't create those directories with your provided user.
    0
  • samuelmf
    I will share you a video wit the steps please take a look, and Thanks for all your time an patience
    0
  • samuelmf
    This is my current storagebox config
    0
  • cPRex Jurassic Moderator
    Since you're not able to create the directories on the Hetzner side of things you'll need to contact them directly to see what the problem is.
    0
  • samuelmf
    Thanks for all the replys, i have already fixed, the problem was because i was creating the keyname with custom name and the storagebox needs that the name of the key must be id_rsa.
    0
  • Spirogg
    name of the key must be id_rsa

    So great to hear and thanks for posting so another person might have this problem and can find the solution. ( id_rsa ) must be the name. Nice. Glad you got it working. ;)
    0
  • samuelmf
    Yeah, i ever post the solution to my problems, maybe in the future it could help other! Thanks
    0
  • Mike Krasakis

    so rsync is working with this solution from whm incremental to storage box? 
    Thanks

    0
  • cPRex Jurassic Moderator

    Mike Krasakis - other users reported it was three years ago, but that may not be relevant today.  Are you seeing issues with that transfer?

    0
  • Mike Krasakis

    cPRex Thank you for the fast answer!!!

    Yes i am trying to make rsync working with incremental to hetzner storage box but failed to the same reason of this: 

    https://support.cpanel.net/hc/en-us/articles/10452826272535-Backup-transports-to-Hetzner-fail-with-an-unclear-message

    0
  • Mike Krasakis

    With SFTP uncompressed of compressed backups are working fine. 

    Wih Rsync which is must from whm in order for the incrementals to working, i've manage to validate the destination folder with ssh key but still , it making only system backups. Also it makes empty folder for the cpanel accounts.

    From the log file of backup :

    [root@server32 ~]# tail -f /usr/local/cpanel/logs/cpbackup/1761937456.log
    [2025-10-31 21:04:28 +0200] info [backup] leaving queue_backup_transport_item
    [2025-10-31 21:04:28 +0200] info [backup] Queuing removal of staging directories since KEEPLOCAL is disabled.
    [2025-10-31 21:04:28 +0200] info [backup] no_transport = 0 .. and queueid = TQ:TaskQueue:186
    [2025-10-31 21:04:28 +0200] info [backup] leaving queue_backup_transport_item
    [2025-10-31 21:04:28 +0200] info [backup] Queuing transport reporter
    [2025-10-31 21:04:28 +0200] info [backup] no_transport = 0 .. and queueid = TQ:TaskQueue:187
    [2025-10-31 21:04:28 +0200] info [backup] leaving queue_backup_transport_item
    [2025-10-31 21:04:28 +0200] info [backup] Completed at Fri Oct 31 21:04:28 2025
    [2025-10-31 21:04:28 +0200] info [backup] Final state is Backup::Success (0)
    [2025-10-31 21:04:28 +0200] info [backup] Sent Backup::Success notification.

    meanwhile :

    [root@server32 ~]# ls -l /var/cpanel/queue/backup_transport/
    ls: cannot access '/var/cpanel/queue/backup_transport/': No such file or directory

    [2025-10-31 16:52:10 +0200] info [cpbackup_transporter] Upload attempt #1 starting for /backup/2025-10-31/accounts/cheapt to 2025-10-31/accounts/cheapt for destination:  server32
    [2025-10-31 16:52:10 +0200] warn [cpbackup_transporter] Upload attempt failed: child exited with code 2
    [2025-10-31 16:52:11 +0200] info [cpbackup_transporter] Upload attempt #2 starting for /backup/2025-10-31/accounts/cheapt to 2025-10-31/accounts/cheapt for destination:  server32
    [2025-10-31 16:52:11 +0200] warn [cpbackup_transporter] Upload attempt failed: child exited with code 2
    [2025-10-31 16:52:12 +0200] info [cpbackup_transporter] Upload attempt #3 starting for /backup/2025-10-31/accounts/cheapt to 2025-10-31/accounts/cheapt for destination:  server32
    [2025-10-31 16:52:12 +0200] warn [cpbackup_transporter] Upload attempt failed: child exited with code 2

    Any assistance would be greatly appreciated.

    0
  • Mike Krasakis

    i make a key with the name id_rsa and upload the key into my storage box via:

    cat ~/.ssh/id_rsa.pub | ssh -p23 user-sub5@user-sub5.your-storagebox.de install-ssh-key 

    The validation of destination is complete, but the problem still existing :( (cloudlinux 9 up to date) 

    0
  • cPRex Jurassic Moderator

    It doesn't look like rsync is an option with Hetzner at this time, according to our support article here:

    https://support.cpanel.net/hc/en-us/articles/10452826272535-Backup-transports-to-Hetzner-fail-with-an-unclear-message

    FTP destination appears to be the only option that will work properly.

    0
  • Mike Krasakis

    cPRex sure but the incremental backups working only with Rsync as i understand.. thats why i asked if samuelmf make it working!! or any other advice-work arround by anyone :)

    The key is working fine i guess because sftp -P 23 user-sub5@user-sub5.your-storagebox.de connected without password

    0

Please sign in to leave a comment.