Transfer a service
Move an application, Compose service or database to another server over SSH, data included.
Transfer moves a service and its data from one server to another without recreating it by hand. The data is copied directly between the two servers over SSH. No S3 bucket is involved.
Before you start
- Plan for downtime: the service is stopped while its data is copied, so the outage grows with volume size.
- You need permission to create services and deployments on the service, and access to the target server.
What is transferred
- Named volumes.
- Host directories used as bind mounts.
- File mounts, recreated on the target.
- Configuration: environment variables, domains, ports and resources.
- For applications, the Traefik configuration. For applications and Compose, the deployment logs.
Transfer
Open the service and click the transfer icon in its header. The Transfer to another server dialog opens.
Select the Target server. Only servers you can access are listed. On self-hosted instances the wtree Cloud server can be a target too.
Optionally enable Remove volumes from the source server after the transfer.
Click Transfer. A log drawer shows each step.
wtree Cloud stops the service on the source, copies volumes and bind mounts, switches the service to the target and deploys it there.
Verify
Check that the deployment finished in the log drawer, then open the service on the target server.
After the transfer
- Point the DNS of the service's domains to the new server. Certificates are issued again there.
- Check networks: networks that exist only on the source are detached.
- Delete bind mount directories on the source yourself. They are never removed, even with the remove option.
Troubleshooting
- Copy failed: the service switches back and starts again on the source. Data already copied stays on the target.
- Deployment on the target failed: the service stays on the target. Fix the problem and click Deploy to retry.
