GithubHelp home page GithubHelp logo

Comments (4)

ZenithalHourlyRate avatar ZenithalHourlyRate commented on August 14, 2024

您可以设置

exclude_file = "/path/to/exclude-file.txt"

该文件会传递给 rsync,具体语法可以参考 rsync 手册。

对于您的样例来说,该文件的内容为

*.iso

from tunasync.

SwarmKit avatar SwarmKit commented on August 14, 2024

有include_file 選項嗎?

from tunasync.

SwarmKit avatar SwarmKit commented on August 14, 2024
[[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.

ZenithalHourlyRate avatar ZenithalHourlyRate commented on August 14, 2024

有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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.