dotfiles/.local/bin/scripts/scpr
2021-10-14 20:52:02 +02:00

6 lines
135 B
Bash
Executable file

#!/bin/sh -e
# Copy recursively over ssh
server="$1"
folder="$2"
ssh "$server" "mkdir -p '$folder'"
scp -rC "${@:2}" "$server:$folder"