我正在Linux机器上安装一个Windows服务器,并运行本地rsync来备份Windows驱动器。 这些是我正在运行的命令。
mount -t smbfs -o username=user,password=pass //123.123.123.123/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/
这是我看到的错误。
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)
您可以忽略“文本文件繁忙”错误。 重点是我不应该因为排除文件而触及这个错误。
任何人都可以看到任何明显的我在这里失踪? 而之前有人问,rsync工作完全正常的其他Windows机器上,我不需要排除。
我想写这样的排除选项:
--exclude="*/Exclude/Directory/*"
你错过了通配符*
尝试重新sorting命令中的选项,以便源和目标位于最后,例如:
/usr/bin/rsync -aqH --numeric-ids --progress --timeout=14400 --bwlimit=2560 --backup --backup-dir=/path/to/backup/ --delete --exclude="Exclude/Directory" --exclude="pagefile.sys" /path/to/mount/ /path/to/full/