From 9ece9fbec32d3050b5f85edb1625b14a61e31e61 Mon Sep 17 00:00:00 2001 From: Robert Bruce Park Date: Sat, 23 Nov 2013 01:18:08 -0800 Subject: [PATCH] Fix spaces in filenames. --- cron_hourly_backup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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