
Carl Turney <carl@boms.com.au> writes:
Hi Trent,
You edit those files you mention after each backup.
I back up at least once a week, but only edit the files I mentioned when I upgrade a system or do a kernel upgrade -- less often. (Been running 10.4 so long haven't upgraded a kernel in a very long time.)
Just run it automatically as part of your backup script. sed -i and perl -i both have a command s/foo/bar/ which says "look for regexp foo and replace it with bar". i.e. they're editing a file. As suggested upthread, though, a RAID1 array is the Right Thing for you.
sed --in-place --file=- /srv/backup/root/etc/udev/rules.d/*persistent-net.rules <<-EOF s/00:1b:21:0d:32:8d/00:1b:21:c6:4f:fc/ s/00:1b:21:b6:67:14/00:1b:21:b6:65:98/ s/00:1b:21:b6:67:15/00:1b:21:b6:65:99/ s/00:1b:21:b6:67:16/00:1b:21:b6:65:9a/ s/00:1b:21:b6:67:17/00:1b:21:b6:65:9b/ s/1c:6f:65:c6:47:56/1c:6f:65:c6:47:46/ EOF