Comments (4)
您可以设置
exclude_file = "/path/to/exclude-file.txt"
该文件会传递给 rsync
,具体语法可以参考 rsync 手册。
对于您的样例来说,该文件的内容为
*.iso
from tunasync.
有include_file 選項嗎?
from tunasync.
[[mirrors]]
name = "epel"
provider = "rsync"
upstream = "rsync://mirrors.tuna.tsinghua.edu.cn/epel/"
rsync_options = [ "--include", "7", "--include", "7/*", "--exclude", "/*" ]
use_ipv6 = false
目前使用上面的配置,是可以只同步 7 如下:
.
└── 7
├── aarch64
├── ppc64
├── ppc64le
├── source
├── SRPMS -> source/tree
└── x86_64
但是我還想排除 aarch64,ppc64, ppc64le
from tunasync.
有include_file 選項嗎?
没有该选项,参考 #84 (comment)
但是我還想排除 aarch64,ppc64, ppc64le
您可以参考使用如下选项
--include 『*/' --exclude '7/aarch64/**' --exclude '7/ppc64/**' --exclude '7/ppc64le/**' --include '7/**' --exclude='*'
注意这里的顺序较为重要。
from tunasync.
Related Issues (20)
- "Generating global index page" too slow when mirroring pypi with tunasync HOT 9
- "Generating global index page" took too long... HOT 22
- 如果不用docker的话很多同步都需要补依赖和脚本什么的 HOT 36
- 使用仓库 debian 示例配置提示 Can't read config file ftpsync-debian.conf! HOT 1
- Loongarch64支持 HOT 3
- 使用代理配置后连接一直403 HOT 6
- 自定义镜像脚本工作异常 HOT 5
- 请问如何手动更新镜像状态 HOT 8
- How to update the size manually using tunasynctl HOT 5
- tunasync tool failed to synchronize HOT 2
- tunasync worker 同步指定的文件? HOT 5
- 求帮助,truenas-core系统下如何build? HOT 1
- 同步如何排除指定架构 HOT 1
- Worker panics when reloading config, if the old config contains no mirrors
- Adoptium jdk21的镜像没有同步 HOT 1
- 使用command方式同步,如何正确获取同步到的Size?
- 是否需要更换更快的GoWeb框架 HOT 1
- 如何将job日志合并到worker输出中 HOT 3
- tunasync怎么配置网络代理 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tunasync.