dotfiles/.local/bin/scripts/scpr

7 lines
132 B
Plaintext
Raw Normal View History

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