From fa336745be0813312ab8f464b6bed408462e395b Mon Sep 17 00:00:00 2001 From: mischa Date: Sun, 17 May 2020 19:41:44 +0200 Subject: [PATCH] added option to pass options --- sync-it.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sync-it.sh b/sync-it.sh index 01f8edc..0c7e93a 100755 --- a/sync-it.sh +++ b/sync-it.sh @@ -1,2 +1,3 @@ #!/bin/sh -/usr/local/bin/rsync -va /etc /var/www/htdocs /home/mischa backup.openbsd.amsterdam::obsdams/$(hostname -s) +OPTIONS=${1:--qa} +/usr/local/bin/rsync ${OPTIONS} /etc /var/www/htdocs /home/mischa backup.openbsd.amsterdam::obsdams/$(hostname -s)