📁 Copy Between Hetzner Dedicated Server and StorageBox (Using rsync)

This guide demonstrates how to transfer data from a Hetzner Dedicated Server to a StorageBox, and vice versa, using rsync over SSH (with Hetzner’s custom port 23).


🔁 Copy from Dedicated Server TO StorageBox

✅ Example command:

rsync -avp --progress -e "ssh -p 23" /home/backups/project-data username-sub1@username.your-storagebox.de:./

🔍 Example Breakdown:

  • /home/backups/project-data — Folder on your dedicated server you want to copy.
  • username-sub1 — Replace with your actual StorageBox sub-account username.
  • username.your-storagebox.de — Replace with your StorageBox hostname.
  • :./ — This means “store in the root folder of the StorageBox account”.

🔁 Copy from StorageBox TO Dedicated Server

✅ Example command:

rsync -avp --progress -e "ssh -p 23" ./ root@server.example.com:/home/restore/

🔍 Example Breakdown:

  • ./ — Folder in your StorageBox you want to copy.
  • root — Username on your destination server (can also be a cPanel user, like user123).
  • server.example.com — Replace with the actual hostname or IP of your dedicated server.
  • /home/restore/ — Target directory on the dedicated server.

🔐 Optional: Enable Passwordless SSH (Recommended)

To avoid repeated password prompts, you can set up SSH key authentication:

On the dedicated server, generate a key (if you haven’t already):

ssh-keygen

Copy the public key to your StorageBox:

ssh-copy-id -p 23 username-sub1@username.your-storagebox.de

You should now be able to use rsync without being prompted for a password.


📝 Notes

  • You must have SSH access enabled for your StorageBox sub-account.
  • rsync only transfers differences — great for incremental backups.
  • Use --delete to sync and remove files not present in the source (be cautious!).
Scroll to Top