Skip to content

Instantly share code, notes, and snippets.

@tzookb
Last active August 31, 2023 10:32
Show Gist options
  • Save tzookb/60f885f70353c9a46dd4 to your computer and use it in GitHub Desktop.
Save tzookb/60f885f70353c9a46dd4 to your computer and use it in GitHub Desktop.
How to deploy wordpress project using rsync

Simple rsync for wordpress project:

rsync SRC/FOLDER/ DEST/FOLDER/ -rvz --delete --exclude='wp-content/uploads/'

params:

r - for recursive, all files and folders in source

v - simply for extra output, can be removed

z - compressing files before transfering

delete - means to delete files in dest that were deleted from source

excludes - path to excclude from syncing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment