#! /bin/bash set -e echo " : servicing" >&2 for s in postgresql nginx php7.3-fpm cron; do service $s restart done echo " : restoring" >&2 bash /restore.sh $i echo " : backing" >&2 bash /backup.sh echo " : sleeping" >&2 sleep 10 echo " : pausering" >&2 exec /xfer/pauser