sync
The sync command initiates the download of external repositories, creating local mirrors of
those repositories.
mirrorctl sync [mirror-ids...] [flags]- It reads configuration from a TOML file (default:
/etc/mirrorctl/mirror.toml) - It then synchronizes either
- all of configured repositories (if no mirror IDs are provided in the command), or
- the individual repository / repositories that are provided as part of the sync command.
Usage
Synchronize all repositories in your /etc/mirrorctl/mirror.toml configuration file:
mirrorctl syncSynchronize only specific repositories:
mirrorctl sync debian debian-securityUse a custom configuration file:
mirrorctl sync --config /path/to/custom-location.tomlOverride the configured log level, setting it to debug:
mirrorctl sync --log-level debugShow detailed error information with stack traces:
mirrorctl sync --verbose-errorsSuppress all output except for errors:
mirrorctl sync --quietCalculate disk usage without downloading files:
mirrorctl sync --dry-runOverwrite an existing snapshot if one already exists:
mirrorctl sync --forceArguments
[mirror-ids …]
Optional list of mirror IDs to synchronize. Mirror IDs must match the keys defined in the
[mirrors] section of your configuration file.
If no mirror IDs are specified, all repositories defined in the configuration file will be synchronized.
Flags
| Flag | Default | Usage |
|---|---|---|
--config, -c |
/etc/mirrorctl/mirror.toml |
Path to the configuration file. |
--log-level, -l |
(from configuration file) | Override the log level specified in the configuration file. |
--verbose-errors |
false |
Show detailed error information including stack traces. |
--quiet, -q |
false |
Suppress all output except for errors. |
--dry-run |
false |
Calculate and report disk usage requirements without actually downloading any files. |
--no-pgp-check |
false |
Disable PGP signature verification on Release files. Use for testing only. |
--force |
false |
Overwrite the snapshot if it already exists. |
--help, -h |
false |
Display help information for the sync command. |
Exit Status
The command exits with status 0 on success and 1 on error.
See Also
- Configuration Reference - Details on TOML configuration file
- Environment Variables - Details on environment variables