1 2 3 4 5 6
#!/usr/bin/env bash WEB_DIR=./web SSH_CMD="ssh" RSYNC_TO=etbsa.net:/opt/traccar/web/ rsync --progress -e "$SSH_CMD" -rvO --delete $WEB_DIR/ $RSYNC_TO