ftpsync
Debian archvsync-based FTP mirroring. Generates a ftpsync.conf file from the package
options and invokes the ftpsync shell script, which handles Debian-specific trace files,
architecture filtering, and the push-triggered mirroring protocol.
Options
Option |
Type |
Default |
Required |
Description |
|---|---|---|---|---|
|
string |
(none) |
Conditional |
REQUIRED when |
|
bool or string |
|
No |
Passed through to the |
|
string |
(none) |
No |
|
|
string |
(none) |
No |
|
|
string |
(none) |
No |
|
|
string |
global |
No |
Overrides global |
|
string |
global |
No |
Overrides global |
|
string |
global |
No |
Overrides global |
|
string |
global |
No |
Overrides global |
|
string |
global |
No |
Overrides global |
|
string |
global |
No |
|
|
string |
global |
No |
|
|
path |
global log folder |
No |
Override the directory where ftpsync writes its own log files. |
Note on
include/excludevsarch_include/arch_exclude: The bareincludeandexcludekeys exist only in the GLOBALsettings.ftpsyncblock ofconfig.json. Per-package architecture overrides must use thearch_includeandarch_excludekeys inside the packageoptionsobject.
Example
This entry is ready to place inside the top-level packages object:
"debian-amd64": {
"name": "Debian amd64",
"id": "debian-amd64",
"href": "/debian",
"synctype": "ftpsync",
"syncrate": "PUSH",
"link": [{ "rel": "HOME", "href": "https://www.debian.org/" }],
"settings": {
"hidden": false,
"src": "rsync://ftp.example.org/debian/",
"dst": "/srv/mirror/debian",
"options": {
"user": "mirror",
"password": "secret",
"hub": false,
"email": "admin@example.org",
"maintainer": "Example Mirror Operators",
"country": "KR",
"arch_include": "amd64 arm64",
"arch_exclude": "mips mipsel"
}
}
}
Full reference
See the Configuration reference (section 4) for the authoritative narrative.