added option to pass options

This commit is contained in:
mischa 2020-05-17 19:41:44 +02:00
parent 875e4ef219
commit fa336745be
1 changed files with 2 additions and 1 deletions

View File

@ -1,2 +1,3 @@
#!/bin/sh #!/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)