You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
524 B
19 lines
524 B
7 months ago
|
#!/usr/bin/env bash
|
||
|
specdir=out
|
||
|
RHOST=kaylee
|
||
|
RPATH=/home/khronos/memberftp/vulkan/
|
||
|
|
||
|
cd $specdir || (echo "Can't cd to $specdir !" ; exit 1)
|
||
|
# Create tarball and upload/copy/extract that to speed things
|
||
|
echo "Creating tarball"
|
||
|
tar czpf /tmp/tarball.tgz .
|
||
|
echo "Uploading tarball"
|
||
|
scp /tmp/tarball.tgz $RHOST:$RPATH
|
||
|
echo "Extracting tarball on server"
|
||
|
# Could add "&& rm tarball.tgz" but nice to have around
|
||
|
ssh $RHOST "cd $RPATH && tar xzpf tarball.tgz"
|
||
|
echo "Removing tarball"
|
||
|
rm /tmp/tarball.tgz
|
||
|
|
||
|
# scp -rp * $RHOST:$RPATH
|