dotfiles/bin/sync-src-to-dest.sh

10 lines
162 B
Bash
Raw Permalink Normal View History

#!/bin/sh
if [ ! "$#" = 2 ]; then
echo "Usage: $0 [src-dir/] [dest-dir/]"
exit 1
fi
rsync -avhcz -e ssh --stats --progress --delete --force "$1" "$2"