I have two Ubuntu server which I want to synchronize so that I can run the second server when the first server is down. I want to do the synchronization using rsync. But I read, not all the directories (for example /boot and hardware specific files) are not supposed to be synchronized. Can someone tell me exactly which files and directories I need to exclude before doing full synchronization?
Just don't backup things that aren't really files
/proc, /sys, /dev
You also may want to stay away from extra disks (like USB disks) or network mounts that you don't want being copied.
This question has more details