Skip to content

Instantly share code, notes, and snippets.

@mcescalante
Created October 3, 2013 02:02
Show Gist options
  • Save mcescalante/6803535 to your computer and use it in GitHub Desktop.
Save mcescalante/6803535 to your computer and use it in GitHub Desktop.
FreeNAS 8.2 rsync remote to local, non-standard port
#Sync all verbose with progress from remote server to local. This is intended as a one shot sync, not to be scheduled as a cron job. Written for use with FreeNAS 8.2 as non-standard ports take a bit of work to get working.
#XXXX after the p flag should be replaced with the port.
rsync -avPz -e "ssh -pXXXX $portNumber" user@remote:/path/to/files/ /local/path/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment