๐Ÿ“ 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 [email protected]:./

๐Ÿ” 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" ./ [email protected]:/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 [email protected]

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