From bb1e17b373c75570b55edc9c80b3d532a44b64f5 Mon Sep 17 00:00:00 2001 From: x1phosura Date: Tue, 29 Mar 2022 01:42:26 -0700 Subject: [PATCH] Add easy rsync wrapper for my poor memory --- bin/sync-src-to-dest.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 bin/sync-src-to-dest.sh diff --git a/bin/sync-src-to-dest.sh b/bin/sync-src-to-dest.sh new file mode 100755 index 0000000..9a7c22d --- /dev/null +++ b/bin/sync-src-to-dest.sh @@ -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" +