Skip to content

Instantly share code, notes, and snippets.

@benharri
Last active April 18, 2019 12:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benharri/363942c65f15ffb39e76353d446dcde8 to your computer and use it in GitHub Desktop.
Save benharri/363942c65f15ffb39e76353d446dcde8 to your computer and use it in GitHub Desktop.
#!/bin/bash
rsync -aHxv --numeric-ids \
--exclude=/etc/fstab \
--exclude=/etc/network/* \
--exclude=/proc/* \
--exclude=/tmp/* \
--exclude=/sys/* \
--exclude=/dev/* \
--exclude=/mnt/* \
--exclude=/boot/* \
--exclude=/root/* \
root@oldbox:/* /
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment