bin/sync-src-to-dest.sh
1 2 3 4 5 6 7 8 9
#!/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"