Blog TIL Now Tags Projects About

Example rsync usage:

Terminal window
# Options:
# --dry-run - don't do the operation, just output what would have happened
# -r - recursive
# -a - archive, "It is a quick way of saying you want recursion and want to preserve almost everything"
# -v - verbose
# -e - what type of shell to copy through
# --delete - delete from target location
rsync -r -a -v -e ssh \
--dry-run \
--progress \
--exclude="*_FR.jpg" \
/source/directory/ \
remote-host:destination/directory/