You can backup your config files before editing them, like this:
cp configbeingedited.conf configbeingedited.conf__orig_datestring
This way, when things break or don’t function how you like, you can easily copy the original config file back into position, restoring the original functionality.
A good tip for setting up a tool to automate this process.