How to copy files between servers

Copy files and folders between Linux servers over SSH using scp and rsync, with resumable transfers, custom ports and permission fixes.

Beginner · about 6 min · Linux, macOS, WSL

Moving a build artifact, a database dump or a log file to another machine is a daily task. Everything you need is already installed if you have SSH access: scp for one-off copies, rsync when the transfer is large, repeated or might be interrupted.

What this guide covers

Common pitfalls covered

Questions answered

This is a limited preview. The full walkthrough, command syntax and copy-ready examples are available to signed-in users.

Sign in to read the full page