blob: 6fbbcee2ae60aba7eb1555b009959c96516621ee [file] [log] [blame]
Ian Maxond8071ee2015-06-24 17:39:05 -07001#!/usr/bin/env bash
Till Westmannea8ab392013-06-05 15:17:08 -07002#/*
3# Copyright 2009-2013 by The Regents of the University of California
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# you may obtain a copy of the License from
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#*/
Ian Maxond8071ee2015-06-24 17:39:05 -070016
ramangrover29116eb972013-02-20 20:47:35 +000017USERNAME=$1
18DIR_TO_TRANSFER=$2
19DEST_HOST=$3
20DEST_DIR=$4
21ssh -l $USERNAME $DEST_HOST "mkdir -p $DEST_DIR"
22echo "scp -r $DIR_TO_TRANSFER $USERNAME@$DEST_HOST:$DEST_DIR/"
23scp -r $DIR_TO_TRANSFER $USERNAME@$DEST_HOST:$DEST_DIR/