Rsync command generator
Compose rsync commands with common SSH, sync, and filter options.
Input
Output
Readme
Tool description
This rsync command builder is a comprehensive tool that helps you build complex rsync commands through an intuitive visual interface. Instead of memorizing numerous command-line flags and options, you can configure your rsync synchronization or backup operation by selecting options, specifying paths, and setting filters. Our rsync generator creates properly formatted commands that you can copy and execute in your terminal.
This rsync command generator is especially useful for system administrators, DevOps engineers, and developers who need to synchronize files between local and remote systems, create backups, or deploy files to servers. The rsync command builder supports both local-to-local and remote transfers via SSH, with extensive options for compression, permissions, filtering, and transfer optimization.
Features
- Flexible Path Configuration: Configure source and destination paths for both local and remote systems
- SSH Integration: Built-in support for remote transfers with custom SSH port configuration
- Comprehensive Options: Access to common rsync flags including:
- Archive mode (-a) for recursive directory copying with permission preservation
- Verbose output (-v) for detailed transfer information
- Compression (-z) to reduce network transfer
- Progress display (--progress) to monitor transfer status
- Human-readable numbers (-h) for file sizes
- Delete extraneous files (--delete) to mirror source exactly
- Dry run (--dry-run) to test without making changes
- Permission preservation (--perms)
- Partial transfer support (--partial) to resume interrupted transfers
Command Structure
The rsync command builder generates commands in the following format:
rsync [short-flags] [long-options] [ssh-options] [include-patterns] [exclude-patterns] [additional-options] "source" "destination"Short flags are combined (e.g., -avzh), while long options are specified separately. Include and exclude patterns are processed in order, allowing for complex filtering logic. Paths containing special characters are automatically quoted and escaped.
Important Notes
- Path Trailing Slashes: In rsync, trailing slashes on source paths matter.
/source/copies the contents, while/sourcecopies the directory itself. - Delete Option Warning: The
--deleteflag removes files in the destination that don't exist in the source. Always test with--dry-runfirst. - SSH Authentication: Remote transfers require proper SSH key setup or will prompt for passwords during execution.
- Pattern Order: Include patterns are applied before exclude patterns. More specific patterns should come before general ones.
- Bandwidth Limit: Specified in KB/s. For example, 1024 limits transfer to approximately 1 MB/s.