Skip to content

Instantly share code, notes, and snippets.

@Ph3nol
Created February 9, 2012 14:18
Show Gist options
  • Save Ph3nol/1780293 to your computer and use it in GitHub Desktop.
Save Ph3nol/1780293 to your computer and use it in GitHub Desktop.
RSync command
rsync --exclude-from=<rsync-dir>/rsync_exclude.txt --include-from=<rsync-dir>/rsync_include.txt --files-from=<rsync-dir>/rsync.txt -e ssh -p <port> ./ <user><host>:<dir>
rsync --dry-run -azC --force --delete --progress --exclude-from=config/rsync_exclude.txt -e "ssh -p22" ./ user@host.com:/destination/path/httpdocs/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment