Skip to content

Instantly share code, notes, and snippets.

View arami265's full-sized avatar

Arnold arami265

View GitHub Profile
@arami265
arami265 / rsync_ssh_dry-run.sh
Last active December 20, 2025 02:15
rsync directory over SSH with exclusions (dry run)
rsync -aAXH --numeric-ids --dry-run --delete \
--info=stats2,progress2 \
--exclude='cache/' \
--exclude='*.log' \
--exclude='.env' \
/path/to/source_dir/ user@debian-host:/path/to/dest_dir/