Skip to content

Instantly share code, notes, and snippets.

@nikos-glikis
Created May 16, 2017 15:55
Show Gist options
  • Save nikos-glikis/7bcae16839cdb247e5723c91837d889e to your computer and use it in GitHub Desktop.
Save nikos-glikis/7bcae16839cdb247e5723c91837d889e to your computer and use it in GitHub Desktop.
rsync a live linux system
#- if use a different port, change the port.
rsync -av -exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found} -z --rsh='ssh -p22' --delete --progress --exclude [email protected] /local/destination
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment