Linux – Rsync Pull Mirror (Bash)
Pull a remote directory into a local rsync mirror.
#!/usr/bin/env bash
SRC="user@host:/data/"
DEST="/mirror/data/"
rsync -aHAX --delete "$SRC" "$DEST"
From Joseph Nakhle's automation workbench.
More Other tools scripts