aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEduardo Pedroni <e.pedroni91@gmail.com>2018-04-04 21:07:02 +0200
committerEduardo Pedroni <e.pedroni91@gmail.com>2018-04-04 21:07:02 +0200
commite5a8226936512f4a7c5c5bac5676431b97334d78 (patch)
tree40b4be4903bc98a2dc9a3a6742899fb286a0e860
parent1952f586f09edf4ad1be4ddeef01e190ae152931 (diff)
Fixed syntax error on rsync opts
-rwxr-xr-xbackup6
1 files changed, 1 insertions, 5 deletions
diff --git a/backup b/backup
index c9abda8..c985399 100755
--- a/backup
+++ b/backup
@@ -5,11 +5,7 @@
LOG_DIR="$HOME/rsync_logs"
LOG_FILE="$LOG_DIR/$(date --iso-8601).log"
-RSYNC_OPTS="-aP \
- --no-owner \
- --delete-during \
- --exclude='lost+found'
- --log-file='$LOG_FILE'"
+RSYNC_OPTS="-aP --no-owner --delete-during --exclude='lost+found' --log-file='$LOG_FILE'"
if [ $# -lt 2 ]; then
echo "Usage: backup <src> <dst>"