Mirror Directories (/sync)
Mirror Directories: /sync
/sync <src> <dst> mirrors a directory via rsync between local and server. rsync must be present on both sides; server-to-server is not supported.
Dry-run is the default
Without --apply, /sync runs as a dry run and only shows what would change — a safeguard against accidental mass changes:
/sync /srv/data homeserver:/backup/data
── DRY RUN (no changes) — re-run with --apply to execute ──
Only with --apply does the actual transfer happen.
Deletion only with a second confirmation
--delete removes files on the destination that are missing in the source. This is only allowed with the matching token:
/sync /srv/data homeserver:/backup/data --apply --delete --confirm-delete=homeserver
If the destination is also under a protected path, --confirm=<server> is required as well.
Tip: Mind the trailing slashes — dir copies the directory itself, dir/ copies its contents.