Skip to content

Instantly share code, notes, and snippets.

@dasgoll
Created March 11, 2022 08:17
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 dasgoll/b856fda0c383d7db2da009afba8290e7 to your computer and use it in GitHub Desktop.
Save dasgoll/b856fda0c383d7db2da009afba8290e7 to your computer and use it in GitHub Desktop.
Rsync from one server to another
/boot/
/etc/modules
/etc/fstab
/etc/mtab
/etc/netplan/
/etc/network/
/etc/sysconfig/network-scripts/
/lib/modules
lost+found/
/sys/
/proc/
/dev/
/var/cache/
/swapfile
rsync -avzP --exclude-from=/root/no_copy / root@NEW_SERVER_IP:/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment