rsync error - simple solution
Tue, Apr 26, 2016 · 1 minute readlinux
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 :-(