Add easy rsync wrapper for my poor memory

This commit is contained in:
Horseshoe Crab 2022-03-29 01:42:26 -07:00
parent f2da865f30
commit bb1e17b373
1 changed files with 9 additions and 0 deletions

9
bin/sync-src-to-dest.sh Executable file
View File

@ -0,0 +1,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"