rsync error - simple solution


Got this error -

Synchronising backup files to remote server ...
sending incremental file list
rsync: link_stat "/home/user/ " failed: No such file or directory (2)

From a bash script running this rsync command -

rsync -vz -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" \
         --rsync-path="/usr/bin/sudo /usr/bin/rsync" --archive --delete \
        ${backupDir}/* ${remoteServer}:${backupDir}

The problem was simply some trailing white space after the line continuation characters :-(

Comment on this article using form below. Requires email login only for authentication. HTML forbidden, Markdown only.