Kopymatic

Database backups sidequest, and breaking things!

[#11] - Created at Nov 22, 2024, 7:07 AM - Updated at Nov 24, 2024, 7:27 PM


Alright so i just got done working on the latest update which features... no user facing changes...

But dont worry, as i have still done a lot

  • I added a fully-automatic (although overly complicated) backup system!
  • I also broke things...

The breaking things was fixable but also avoidable. I use a version control software called Git. In Git you can "Stash" your changes to be worked on more later. I've been having issues with my server having slightly different data on it that git really does not want to override, and i dont want to accidentally lose anything important. So, to solve that problem, i used git stash. I thought "oh git stash --all sounds good, ill use that"

But it actually decided to stash everything, including files ive never told git about, the biggest one being the database. I nearly pooped my pants thinking all the data was gone, but fortunately i just did git stash apply and it brought everything back. woohoo!

But that was very scary, and i need to be more careful. Made me kinda glad i started early with my database backup system.

Thanks for reading, see ya!