In-reply-to » This weekend (as some of you may now) I accidently nuke this Pod's entire data volume ๐Ÿคฆโ€โ™‚๏ธ What a disastrous incident ๐Ÿคฃ I decided instead of trying to restore from a 4-month old backup (we'll get into why I hadn't been taking backups consistently later), that we'd start a fresh! ๐Ÿ˜… Spring clean! ๐Ÿงผ -- Anyway... One of the things I realised was I was missing a very critical Safety Controls in my own ways of working... I've now rectified this...

Then I cleaned up my shell history of all of the invocations I ever made of dkv rm ... to make sure I never ever have this so easily accessible in my shell history (^R):

$ awk '
  /^#/ { ts = $0; next }
  /^dkv rm/ { next }
  { if (ts) print ts; ts=""; print }
' ~/.bash_history > ~/.bash_history.tmp && mv ~/.bash_history.tmp ~/.bash_history && history -r

โค‹ Read More