Gitbash中的rsync(cwrsync) – 源和目标不能都是远程的. [Windows 7的]

我试图在 Windows 7中使用 Git Bash将本地路径同步到另一个驱动器.我下载了cwRsync并将文件复制到我的Git bash bin目录.我可以运行rsync但是以下命令给我带来了问题

rsync -av /c/00-dev/05-batch /f/RSYNC/
The source and destination cannot both be remote.
rsync error: Syntax or usage error (code 1) at main.c(1135) [receiver=3.0.6]

两条路径都是正确的,但不会同步.

解决方法

解决方法:使用相对路径cd到/ c和rsync.

这样可行:

cd /c
touch temp/test.txt
rsync temp/test.txt temp/test2.txt

虽然这不是,即使你cd到/ c:

$rsync /c/temp/test.txt /c/temp/test2.txt
The source and destination cannot both be remote.

使用git 2.9.0.windows.1附带的Git Bash进行测试.

相关文章

insmod和modprobe加-f参数导致Invalid module format错误 这...
将ArchLinux安装到U盘 几个月前入门Arch的时候上网搜了不少安...
1、安装Apache。 1)执行如下命令,安装Apache服务及其扩展包...
一、先说一下用ansible批量采集机器信息的实现办法: 1、先把...
安装配置 1. 安装vsftpd 检查是否安装了vsftpd # rpm -qa | ...
如何抑制stable_secret读取关键的“net.ipv6.conf.all.stabl...