DEV Community

Discussion on: Developer Fears: Breaking Production

redcaptom profile image
Red Cap Tom

Ooooooh, there was that time where I mv x y by doing mv y x. That obviously did not work, and I ended up wiping an sqlite database like a pro.

Conclusion: backups are your friend. If you're doing destructive actions, do mv x x-bak before doing mv x y.

When your volume is small and your sqlite is big, however..... a story for another day.