#!/bin/bash

set -e

HOST=yuca.yunity.org

echo "sending [public] to [$HOST]"

scp -r public deploy@$HOST:public

#!/bin/bash

set -e

HOST=yuca.yunity.org

echo "sending [public] to [$HOST]"

rsync -av --delete public deploy@$HOST:public

Use rsync instead of scp
Use rsync instead of scp
