Fix spaces in filenames.

This commit is contained in:
Robert Bruce Park 2013-11-23 01:18:08 -08:00
parent 392b8089a5
commit 9ece9fbec3

View file

@ -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