DELAPARRA
Index
Color
NL
Category: CLI commands

scp

Explained by Updated

What is scp?

scp: Secure Copy Protocol — Copy files between local machine and a remote server over SSH. scp copies files between computers over SSH. scp backup.sql user@server:/tmp/ uploads a file, and scp user@server:/var/log/app.log . downloads one. Add -r for folders. It uses the same keys and login as ssh, so if you can log in, you can copy.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about scp

What should you keep in mind with scp?

For anything beyond the occasional file, rsync over SSH is usually better. It only sends what changed, can resume interrupted transfers and shows progress. Recent OpenSSH versions also run scp on top of the SFTP protocol, which fixed some long-standing quirks. Be careful with what you copy around: database dumps and log files often contain personal data, and copies on laptops and in temporary folders are easily forgotten.

At a glance

CategoryCLI commands
Explained by
Updated

More CLI commands terms

All terms starting with S

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.