HostnExtraHostnExtra Docs

Commands

Reference for HostnExtra Sync commands and options.

Commands

HostnExtra Sync provides commands for pushing, pulling, comparing, and continuously synchronizing files.

Push

Synchronize a local file or directory to a remote server.

hostnextra sync push ./build --to web-prod-01:/var/www

Example with a direct SSH target:

hostnextra sync push ./build --to [email protected]:/var/www

Pull

Synchronize a remote file or directory to the local machine.

hostnextra sync pull web-prod-01:/var/www/build --to ./backup

Diff

Compare local and remote content without modifying either side.

hostnextra sync diff ./build --to web-prod-01:/var/www

Use diff when you want to inspect synchronization differences before transferring files.

Watch

Continuously synchronize a local directory when changes are detected.

hostnextra sync watch ./src --to web-prod-01:/var/www

Watch mode is intended for development and local-to-remote synchronization workflows.

Status

Display the local rsync version and supported capabilities.

hostnextra sync status

Common Options

--to

Specifies the synchronization target.

--to <target>

Example:

hostnextra sync push ./build --to web-prod-01:/var/www

--dry-run

Preview synchronization without modifying files.

hostnextra sync push ./build \
    --to web-prod-01:/var/www \
    --dry-run

--delete

Delete files from the synchronization scope when they do not exist in the source.

hostnextra sync push ./build \
    --to web-prod-01:/var/www \
    --delete

See the deletion guide before using this option.

--exclude

Exclude files or directories from synchronization.

hostnextra sync push ./build \
    --to web-prod-01:/var/www \
    --exclude node_modules,.git

See the exclusions guide for more examples.

--no-progress

Disable transfer progress output.

hostnextra sync push ./build \
    --to web-prod-01:/var/www \
    --no-progress

Help

Display Sync command help:

hostnextra sync help

Or:

hostnextra sync --help

On this page