I am mounting a windows server on a linux box, and running a local rsync to backup the windows drive. These are the commands that I am running.
mount -t smbfs -o username=user,password=pass //22.214.171.124/d_backup /path/to/mount /usr/bin/rsync -aqH --numeric-ids --progress --timeout=14400 --bwlimit=2560 --backup -- backup-dir=/path/to/backup/ --delete /path/to/mount/ --exclude="Exclude/Directory" --exclude="pagefile.sys" /path/to/full/
And this is the error that I see.
rsync: send_files failed to open "/path/to/mount/pagefile.sys": Text file busy (26) rsync: send_files failed to open "/path/to/mount/Exclude/Directory/somefile.txt": Text file busy (26)
You can ignore the "Text file busy" error. The point is that I shouldn't be hitting this error since I have excluded the file.
Can anyone see anything obvious that I am missing here? And before anyone asks, the rsync works perfectly fine on other windows machines where I do not require excludes.