Linux – Rsync Pull Mirror (Bash)

Below is a ready-to-use script. Review and adapt variables to your environment.

#!/usr/bin/env bash
SRC="user@host:/data/"
DEST="/mirror/data/"
rsync -aHAX --delete "$SRC" "$DEST"
  

← Back to SQL