fkwdigital/Deploy Files Through Rsync to Remote Ubuntu-based Linux Server

Deploy via rsync over SSH with enforced excludes and flexible path configuration.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
SSH_PRIVATE_KEYPrivate key contents (highly recommended to add through GitHub secrets)yes
REMOTE_HOSTDestination host (server IP or hostname)yes
REMOTE_USERSSH usernameyes
REMOTE_PORTSSH port22
REMOTE_PATHAbsolute remote path (e.g., /var/www/html, /home/user/public_html)yes
SOURCERelative local source. Defaults to public/.public/
RSYNC_ARGSRsync args (space separated).-azvr --inplace --exclude='.*' --no-perms --no-times
SSH_PASSPHRASEPassphrase for the SSH private key (required by some managed hosts)no
ARGS(Alias) Same as RSYNC_ARGS for compatibility.no
EXCLUDE_FILEOptional path to an rsync --exclude-from file (e.g., ./public/exclude.txt)no
EXTRA_EXCLUDEOptional comma-separated extra exclude patterns appended to the built-in list.no
SCRIPTOptional shell commands to run on the remote server after deployment (e.g., 'cd /var/www/html && wp cache flush')no

no outputs