Gitiles
Code Review
Sign In
asterix-gerrit.ics.uci.edu
/
asterixdb
/
b1828f947c9dbba4d25938ae344ff30ffbe0b14d
/
.
/
asterix-events
/
src
/
main
/
resources
/
events
/
file
/
dir_transfer.sh
blob: af7da704b8ee5fe88af8698f4800ad3a038a3a0d [
file
] [
log
] [
blame
]
USERNAME
=
$1
DIR_TO_TRANSFER
=
$2
DEST_HOST
=
$3
DEST_DIR
=
$4
ssh
-
l $USERNAME $DEST_HOST
"mkdir -p $DEST_DIR"
echo
"scp -r $DIR_TO_TRANSFER $USERNAME@$DEST_HOST:$DEST_DIR/"
scp
-
r $DIR_TO_TRANSFER $USERNAME@$DEST_HOST
:
$DEST_DIR
/