mirror of
https://github.com/laurent22/rsync-time-backup
synced 2024-11-10 14:14:16 +00:00
Fix spaces in filenames.
This commit is contained in:
parent
392b8089a5
commit
9ece9fbec3
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue