My main area of work is programming, and I sometimes have to perform some actions on production servers (when deploying application or configuring something...).
So my question is, what should be done to be as sure as I can be that I don't mess up with something on production server that I intended to do on my machine/test environment? Wiping out some database or deleting logs, for instance.
What comes to my mind are few basic things, like:
- having the production console open for only as much time as I need to do my job there, then close it
- configuring the console on production server to be really diffrent then others - like red background or something like that
- having every command there require an additional confirmation
Are there any other rules that help to stay sane and not mess up with production server?