dotfiles/.local/bin/scripts/scpr

7 lines
135 B
Plaintext
Raw Normal View History

2021-10-14 18:26:08 +00:00
#!/bin/sh -e
2021-10-12 07:17:45 +00:00
# Copy recursively over ssh
server="$1"
folder="$2"
ssh "$server" "mkdir -p '$folder'"
scp -rC "${@:2}" "$server:$folder"