File size: 554 Bytes
ee87395
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
# Immediately exit on any errors.
set -e
# Print commands as they are run.
set -o xtrace

# Check if the username argument is provided
if [ $# -ne 1 ]; then
    echo "Error: Please provide the username as an argument."
    echo "Format: First letter of first name and last name, all lowercase (e.g., rrobot for Rosie Robot)."
    echo "Usage: $0 <username>"
    exit 1
fi

USERNAME="$1"

ssh "$USERNAME"@gpu2.ihmc.us "mkdir -p /home/$USERNAME/datasets/"
rsync -avz --exclude='.git' "$PWD" "$USERNAME"@gpu2.ihmc.us:/home/"$USERNAME"/datasets/