Skip to content

Instantly share code, notes, and snippets.

@benharri
Last active April 18, 2019 12:00
Show Gist options
  • 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