rsync
Generic incremental file mirror using rsync, with an optional FFTS (file-fetch-timestamp) dry-run pre-check to skip syncs when the upstream has not changed.
Options
Option |
Type |
Default |
Required |
Description |
|---|---|---|---|---|
|
bool |
|
No |
Enable an FFTS dry-run pre-check before syncing. When |
|
string |
|
Required when |
Relative path to the upstream timestamp file. It is appended to both |
|
string |
|
No |
rsync username. Sets the |
|
string |
|
No |
rsync password. Sets the |
|
string |
|
No |
Flag characters appended to the default rsync flag string (e.g. |
|
string |
|
No |
Flag characters removed from the default rsync flag string. |
|
list of string |
|
No |
Extra |
Example
This entry is ready to place inside the top-level packages object:
"debian-cd": {
"name": "Debian CD",
"id": "debian-cd",
"href": "/debian-cd",
"synctype": "rsync",
"syncrate": "PT6H",
"link": [{ "rel": "HOME", "href": "https://www.debian.org/CD/" }],
"settings": {
"hidden": false,
"src": "rsync://ftp.example.org/debian-cd/",
"dst": "/srv/mirror/debian-cd",
"options": {
"user": "mirror",
"password": "secret",
"ffts": true,
"fftsfile": "ls-lR.gz",
"option_include": "H",
"option_exclude": "z",
"exclude": ["Thumbs.db", ".DS_Store"]
}
}
}
Full reference
See the Configuration reference (section 4) for the authoritative narrative.