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/wwwExample with a direct SSH target:
hostnextra sync push ./build --to [email protected]:/var/wwwPull
Synchronize a remote file or directory to the local machine.
hostnextra sync pull web-prod-01:/var/www/build --to ./backupDiff
Compare local and remote content without modifying either side.
hostnextra sync diff ./build --to web-prod-01:/var/wwwUse 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/wwwWatch mode is intended for development and local-to-remote synchronization workflows.
Status
Display the local rsync version and supported capabilities.
hostnextra sync statusCommon 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 \
--deleteSee 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,.gitSee the exclusions guide for more examples.
--no-progress
Disable transfer progress output.
hostnextra sync push ./build \
--to web-prod-01:/var/www \
--no-progressHelp
Display Sync command help:
hostnextra sync helpOr:
hostnextra sync --help