You can keep /usr synchronized with rsync:
Code:
cd /
rsync -av server:/usr .
Run it hourly or daily from cron. (To run it without intervention, you'll need a shared SSH key for the root user on both ends, or start an instance of rsync in "daemon mode" on the server. "man rsync" for details.)
You also might want to considering mounting /usr read-only in /etc/fstab as well to prevent someone from hacking common applications. In that case you'd need a script that first remounts /usr as read/write, then runs rsync, then remounts /usr as read-only again. Something like this might work, but I'm not promising...
Code:
cd /
mount -o remount,rw /usr
rsync -av server:/usr .
mount -o remount,ro /usr
Bookmarks