rsync copies folders from your service to another service or server over SSH, for example when you move to a bigger plan. If the copy stops, you run it again and it continues where it was; it only copies what is missing or has changed. We tested it between two App Hosting services on our demo server.

You need the SSH user name and server name of both services, and the password of the target. Connect over SSH to the service that has the files: SSH how to get connected.


1. Copy a Folder

For example, to copy the folder media/books to the same place on the other service:

rsync -avP --mkpath ~/media/books/ username2@ds67890.seedhost.eu:~/media/books/
  • -a keeps the folder structure and the dates of the files; -v lists every file it copies.
  • -P shows the progress and keeps files that were only partly copied, so that the next run goes on with them.
  • --mkpath creates the target folder, also media above it, if it does not exist yet. Without it, rsync stops with mkdir "/home2/username2/media/books" failed: No such file or directory when the folder above the target is missing.
  • The / at the end of ~/media/books/ means: the content of the folder. Keep it at the end of both paths.

The first time, SSH asks whether you trust the other server: type yes. Then it asks for the password of username2. rsync lists the files and ends with a summary such as sent 1,574,805 bytes and total size is 1,573,992.

2. Big Copies

A copy of many gigabytes takes hours. Start it in tmux, so that it keeps running when you close the SSH window: tmux: Keep a Command Running After You Close SSH. If it stops anyway, run the same command again.

3. Run It Again

A second run copies only what is new or changed. If nothing has changed, the second run finds nothing to copy and sends only a few hundred bytes. To see what a run would copy without copying anything, add -n:

rsync -avPn --mkpath ~/media/books/ username2@ds67890.seedhost.eu:~/media/books/

4. What to Copy

  • Copy your own data: downloads, media and the other folders of your files.
  • Do not copy the settings of your apps from .config to install them on the other service. Install the apps there on the Apps tab. Radarr, Sonarr and similar apps can take their settings with a backup: Back up and restore their settings.
  • Check that the target has enough free space for the copy, with quota -s on the target, or with df -h ~ if the target is Dedicated App Hosting: See how much space you use on your service.

Good to Know

  • With an SSH key on the target, rsync does not ask for the password: Log in with an SSH key.
  • rsync also works with a Linux server of your own: use its user name and address instead of username2@ds67890.seedhost.eu.
Was this answer helpful? 0 Users Found This Useful (0 Votes)