• 1 Post
  • 339 Comments
Joined 2 years ago
cake
Cake day: June 16th, 2023

help-circle

  • I figure the most bang for my buck right now is to set up off-site backups to a cloud provider.

    If you don’t have the budget for on-premises backup, you almost certainly can’t afford to restore the cloud backup if anything goes wrong.

    Then I started reading about backing up databases

    Go read the instructions for your database in particular. They are completely different from each other. Ignore generic instructions.

    now I’m configuring a docker-db-backup container

    What is perfectly fine. But I’d first look how this interferes with the budget you talked about earlier and if it wouldn’t be better to keep things simpler and put the money on data replication.

    Either way, if your budget is low, I’d focus a lot on making sure you have the data when you need to restore, and less on streamlining the restore procedure. (That seems to be the direction you are going, so yeah, I’d say it’s good.) Just make sure to test the restore procedure once in a while.

















  • == has essentially no use unless you remember some completely arbitrary rules

    If you make sure the types match, like by explicitly converting things on the same line on that example, then you can use it just like if it was ===.

    In fact, there are people that defend that if your code behaves differently when you switch those two operators, your code is wrong. (Personally, I defend that JS it a pile of dogshit, and you should avoid going to dig there.)