我想将mirror.kernel.org/centos/6/updates/x86_64/Packages/中的所有内容rsync到我服务器上的目录中。我不想结束像〜/ mirrors.kernel.org / centos / 6 / updates / x86_64 / Packages /
这样的目录结构。[joliver@lake ~]$ rsync mirrors.kernel.org/centos/6/updates/x86_64/Packages/ CentOS6/
rsync: change_dir "/home/joliver/mirrors.kernel.org/centos/6/updates/x86_64/Packages" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1039) [sender=3.0.6]
[joliver@lake ~]$ mkdir -p mirrors.kernel.org/centos/6/updates/x86_64/Packages
[joliver@lake ~]$ rsync mirrors.kernel.org/centos/6/updates/x86_64/Packages/ mirrors.kernel.org/centos/6/updates/x86_64/Packages
skipping directory .[joliver@lake ~]$ rsync mirrors.kernel.org/centos/6/updates/x86_64/Packages/ mirrors.kernel.org/centos/6/updates/x86_64/Packages/
skipping directory .
在我拥有之后,我希望能够只对这些增量进行rsync。我想只是重做rsync然后找到ctime少于自上次运行以来的所有文件就足够了,但是如果有更简洁的方法来获取新的/更改的文件,那就太好了。
答案 0 :(得分:0)
rsync -avSHP --delete --exclude "local*" --exclude "isos" \
mirrors.kernel.org::centos/6/updates/x86_64/Packages/ CentOS6/