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

10 lines
162 B
Bash
Executable File

#!/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"