laurent22 / rsync-time-backup

Time Machine style backup with rsync.
3.36k stars 443 forks source link

Update rsync_tmbackup.sh #232

Closed psmanek closed 3 years ago

psmanek commented 3 years ago

Fix: Source path with spaces.

laurent22 commented 3 years ago

Thanks for the fix!

AS78 commented 3 years ago

How about spaces in the destination folder?

line 80:

fn_find_backups() {
    fn_run_cmd "find \""$DEST_FOLDER/"\" -maxdepth 1 -type d -name \"????-??-??-??????\" -prune | sort -r"
}

seems to work.