diff --git a/cron_hourly_backup.sh b/cron_hourly_backup.sh index 526751f..8db0b8a 100644 --- a/cron_hourly_backup.sh +++ b/cron_hourly_backup.sh @@ -15,6 +15,6 @@ TMBACKUP="/usr/local/bin/rsync_tmbackup.sh" for DEST in /media/*/*/ /run/media/*/*/; do [ -f "$DEST/backup.marker" ] || continue USERNAME=$(basename $(dirname "$DEST")) - EXCLUDES=$(find /home/$USERNAME/.backup.excludes 2>/dev/null) - bash $TMBACKUP /home/$USERNAME $DEST $EXCLUDES + EXCLUDES=$(find "/home/$USERNAME/.backup.excludes" 2>/dev/null) + bash "$TMBACKUP" "/home/$USERNAME" "$DEST" "$EXCLUDES" done