all repos — h3rald @ 1d3b65b92ca1c281290fdbbb7d5693829780eca0

The sources of https://h3rald.com

Added scp file transfer spell.
h3rald h3rald@h3rald.com
Sun, 16 Mar 2025 11:19:07 +0100
commit

1d3b65b92ca1c281290fdbbb7d5693829780eca0

parent

0681d80306f046f9dc40505edefbb97e52760886

1 files changed, 16 insertions(+), 0 deletions(-)

jump to
A contents/grimoire/scp-file-transfers.md

@@ -0,0 +1,16 @@

+----- +id: scp-file-transfers +title: "Transfer files using SCP" +subtitle: "The fastest way to copy files to/from a server" +content-type: spell +----- + +Sometimes I just want to copy a file to my VPS, run a program to process it in some way, and copy it back to my local machine. With _scp_ that's as easy as... + +```bash +# Copy to server +scp <path/to/local/file> <user>@<server>:</path/to/remote/directory> + +# Copy from server +scp <user>@<server>:</path/to/remote/directory> <path/to/local/directory> +```