#!/bin/bash set -e SRC="/home/def/monitor/frontend/" DST="/var/www/monitor/" echo "Deploying monitor frontend..." rsync -rlptDv --delete --no-owner --no-group "$SRC" "$DST" echo echo "Deploy complete:" ls -lah "$DST"