Mastodon Skip to content
  • Home
  • Aktuell
  • Tags
  • Über dieses Forum
Einklappen
Grafik mit zwei überlappenden Sprechblasen, eine grün und eine lila.
Abspeckgeflüster – Forum für Menschen mit Gewicht(ung)

Kostenlos. Werbefrei. Menschlich. Dein Abnehmforum.

  1. Home
  2. Uncategorized
  3. Test your damn backup scripts.

Test your damn backup scripts.

Geplant Angeheftet Gesperrt Verschoben Uncategorized
33 Beiträge 26 Kommentatoren 0 Aufrufe
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • vkc@linuxmom.netV vkc@linuxmom.net

    Test your damn backup scripts.

    Don't just assume everything is working. Unplug servers and test it then. How will you know it's broken?

    If you aren't testing your backups, you don't have backups.

    baardhaveland@snabelen.noB This user is from outside of this forum
    baardhaveland@snabelen.noB This user is from outside of this forum
    baardhaveland@snabelen.no
    schrieb zuletzt editiert von
    #2

    @vkc

    "Schrödinger backup" is absolutely a thing

    blueteamsherpa@infosec.exchangeB 1 Antwort Letzte Antwort
    0
    • vkc@linuxmom.netV vkc@linuxmom.net

      Test your damn backup scripts.

      Don't just assume everything is working. Unplug servers and test it then. How will you know it's broken?

      If you aren't testing your backups, you don't have backups.

      smolbrain@floofy.techS This user is from outside of this forum
      smolbrain@floofy.techS This user is from outside of this forum
      smolbrain@floofy.tech
      schrieb zuletzt editiert von
      #3

      @vkc I hooked up c4 to my emergency circuit. Im just blowing everything up if I die. Do i *have* to test that one

      1 Antwort Letzte Antwort
      0
      • vkc@linuxmom.netV vkc@linuxmom.net

        Test your damn backup scripts.

        Don't just assume everything is working. Unplug servers and test it then. How will you know it's broken?

        If you aren't testing your backups, you don't have backups.

        vkc@linuxmom.netV This user is from outside of this forum
        vkc@linuxmom.netV This user is from outside of this forum
        vkc@linuxmom.net
        schrieb zuletzt editiert von
        #4

        Here's a tip: your email provider (Gmail, Fastmail, ProtonMail, etc) probably has a way to send SMTP email with an app password.

        Use a tool like postfix or (my favorite recently) msmtp to send yourself an email **every time your backup completes**. Then, test what happens if the backup doesn't complete. If your mobile provider has an email->SMS bridge, you can even send yourself a text message.

        Will you ever know if your backup doesn't work? Figure that out BEFORE you deploy. While it's fresh.

        D umer@gts.thefarooqs.netU vkc@linuxmom.netV philsplace@mastodon.sdf.orgP betterthanlast@mstdn.socialB 5 Antworten Letzte Antwort
        0
        • vkc@linuxmom.netV vkc@linuxmom.net

          Test your damn backup scripts.

          Don't just assume everything is working. Unplug servers and test it then. How will you know it's broken?

          If you aren't testing your backups, you don't have backups.

          normandunbar@mastodon.scotN This user is from outside of this forum
          normandunbar@mastodon.scotN This user is from outside of this forum
          normandunbar@mastodon.scot
          schrieb zuletzt editiert von
          #5

          @vkc Also test your restores. 😉

          vkc@linuxmom.netV 1 Antwort Letzte Antwort
          0
          • vkc@linuxmom.netV vkc@linuxmom.net

            Here's a tip: your email provider (Gmail, Fastmail, ProtonMail, etc) probably has a way to send SMTP email with an app password.

            Use a tool like postfix or (my favorite recently) msmtp to send yourself an email **every time your backup completes**. Then, test what happens if the backup doesn't complete. If your mobile provider has an email->SMS bridge, you can even send yourself a text message.

            Will you ever know if your backup doesn't work? Figure that out BEFORE you deploy. While it's fresh.

            D This user is from outside of this forum
            D This user is from outside of this forum
            draeand@social.the-gdn.net
            schrieb zuletzt editiert von
            #6

            @vkc I back up to BorgBAse and have an inactivity alert timer set to a day. If my server doesn't back up every day as I have explicitly instructed, I find out very fast.

            1 Antwort Letzte Antwort
            0
            • vkc@linuxmom.netV vkc@linuxmom.net

              Here's a tip: your email provider (Gmail, Fastmail, ProtonMail, etc) probably has a way to send SMTP email with an app password.

              Use a tool like postfix or (my favorite recently) msmtp to send yourself an email **every time your backup completes**. Then, test what happens if the backup doesn't complete. If your mobile provider has an email->SMS bridge, you can even send yourself a text message.

              Will you ever know if your backup doesn't work? Figure that out BEFORE you deploy. While it's fresh.

              umer@gts.thefarooqs.netU This user is from outside of this forum
              umer@gts.thefarooqs.netU This user is from outside of this forum
              umer@gts.thefarooqs.net
              schrieb zuletzt editiert von
              #7

              @vkc I find using runitor to be really helpful. It works with healthchecks.io which will notify me if a check wasn't started, didn't complete, or failed.

              1 Antwort Letzte Antwort
              0
              • vkc@linuxmom.netV vkc@linuxmom.net

                Here's a tip: your email provider (Gmail, Fastmail, ProtonMail, etc) probably has a way to send SMTP email with an app password.

                Use a tool like postfix or (my favorite recently) msmtp to send yourself an email **every time your backup completes**. Then, test what happens if the backup doesn't complete. If your mobile provider has an email->SMS bridge, you can even send yourself a text message.

                Will you ever know if your backup doesn't work? Figure that out BEFORE you deploy. While it's fresh.

                vkc@linuxmom.netV This user is from outside of this forum
                vkc@linuxmom.netV This user is from outside of this forum
                vkc@linuxmom.net
                schrieb zuletzt editiert von
                #8

                If you're doing a pull style backup, where your backup target pulls the files from the main machine, test what happens if the host's directory got encrypted, unmounted, or deleted.

                This is a gotcha I've seen hundreds of times before. "We back everything up!" Sure, but when they encrypted your /opt/appdir/ and you pulled those files, guess what you just did?!?

                What if the drive got borked on the host machine... did you just delete your backups?

                Test that crap!

                eggfreckles@mastodon.mit.eduE adrienandrem@pouet.chapril.orgA cimb4@norden.socialC 3 Antworten Letzte Antwort
                0
                • normandunbar@mastodon.scotN normandunbar@mastodon.scot

                  @vkc Also test your restores. 😉

                  vkc@linuxmom.netV This user is from outside of this forum
                  vkc@linuxmom.netV This user is from outside of this forum
                  vkc@linuxmom.net
                  schrieb zuletzt editiert von
                  #9

                  @NormanDunbar yes yes yes yes yes!

                  1 Antwort Letzte Antwort
                  0
                  • vkc@linuxmom.netV This user is from outside of this forum
                    vkc@linuxmom.netV This user is from outside of this forum
                    vkc@linuxmom.net
                    schrieb zuletzt editiert von
                    #10

                    @cadusilva I like ntfy but I always worry what happens when it fails. I've used it alongside email for a while!

                    cadusilva@bolha.oneC 1 Antwort Letzte Antwort
                    0
                    • vkc@linuxmom.netV vkc@linuxmom.net

                      @cadusilva I like ntfy but I always worry what happens when it fails. I've used it alongside email for a while!

                      cadusilva@bolha.oneC This user is from outside of this forum
                      cadusilva@bolha.oneC This user is from outside of this forum
                      cadusilva@bolha.one
                      schrieb zuletzt editiert von
                      #11

                      @vkc your post made me think about it. It wouldn't hurt to configure another trigger for SMTP like you've said.

                      1 Antwort Letzte Antwort
                      0
                      • vkc@linuxmom.netV vkc@linuxmom.net

                        If you're doing a pull style backup, where your backup target pulls the files from the main machine, test what happens if the host's directory got encrypted, unmounted, or deleted.

                        This is a gotcha I've seen hundreds of times before. "We back everything up!" Sure, but when they encrypted your /opt/appdir/ and you pulled those files, guess what you just did?!?

                        What if the drive got borked on the host machine... did you just delete your backups?

                        Test that crap!

                        eggfreckles@mastodon.mit.eduE This user is from outside of this forum
                        eggfreckles@mastodon.mit.eduE This user is from outside of this forum
                        eggfreckles@mastodon.mit.edu
                        schrieb zuletzt editiert von
                        #12

                        @vkc is it really a backup if you don't keep multiple versions?

                        wfk@social.v.stW 1 Antwort Letzte Antwort
                        0
                        • vkc@linuxmom.netV vkc@linuxmom.net

                          Test your damn backup scripts.

                          Don't just assume everything is working. Unplug servers and test it then. How will you know it's broken?

                          If you aren't testing your backups, you don't have backups.

                          mrcopilot@mstdn.socialM This user is from outside of this forum
                          mrcopilot@mstdn.socialM This user is from outside of this forum
                          mrcopilot@mstdn.social
                          schrieb zuletzt editiert von
                          #13

                          @vkc A wise mentor once said to me, while I was setting up the companies backup solution. if you remember nothing else remember this:

                          "Data redundancy implies Data Inconsistency"

                          "If you are not constantly thinking about this fact, don't even bother."

                          He then helped me implement a "Network Recycle Bin" whose absence was the root cause of our emergency backup scheme implementation.

                          1 Antwort Letzte Antwort
                          0
                          • vkc@linuxmom.netV vkc@linuxmom.net

                            Test your damn backup scripts.

                            Don't just assume everything is working. Unplug servers and test it then. How will you know it's broken?

                            If you aren't testing your backups, you don't have backups.

                            kasperd@westergaard.socialK This user is from outside of this forum
                            kasperd@westergaard.socialK This user is from outside of this forum
                            kasperd@westergaard.social
                            schrieb zuletzt editiert von
                            #14

                            Reminds me of a phone conference I was once in with a tape drive vendor. A colleague of mine was asking questions.

                            Colleague: Have none of your other customers experienced these read performance problems?
                            Vendor: Your use case is a bit atypical.
                            Colleague: What exactly is atypical about our use case?
                            Vendor: We can tell from the logs that you have had a lot of read activity on these drives. Most of our customers mainly use the drives for writing to tapes.

                            1 Antwort Letzte Antwort
                            0
                            • vkc@linuxmom.netV vkc@linuxmom.net

                              Test your damn backup scripts.

                              Don't just assume everything is working. Unplug servers and test it then. How will you know it's broken?

                              If you aren't testing your backups, you don't have backups.

                              soviut@hachyderm.ioS This user is from outside of this forum
                              soviut@hachyderm.ioS This user is from outside of this forum
                              soviut@hachyderm.io
                              schrieb zuletzt editiert von
                              #15

                              @vkc You just reminded me to check my BorgBackup mount script. It worked but I forgot sudo the first time so I added a root check to it.

                              1 Antwort Letzte Antwort
                              0
                              • vkc@linuxmom.netV vkc@linuxmom.net

                                Here's a tip: your email provider (Gmail, Fastmail, ProtonMail, etc) probably has a way to send SMTP email with an app password.

                                Use a tool like postfix or (my favorite recently) msmtp to send yourself an email **every time your backup completes**. Then, test what happens if the backup doesn't complete. If your mobile provider has an email->SMS bridge, you can even send yourself a text message.

                                Will you ever know if your backup doesn't work? Figure that out BEFORE you deploy. While it's fresh.

                                philsplace@mastodon.sdf.orgP This user is from outside of this forum
                                philsplace@mastodon.sdf.orgP This user is from outside of this forum
                                philsplace@mastodon.sdf.org
                                schrieb zuletzt editiert von
                                #16

                                @vkc

                                Back in the 90’s I was managing some servers and had Perl scripts running cron jobs. When the jobs were done… they would send me an email with the logging output of the job.

                                One day I realized that I had not seen an email from a specific job/server for a few days. (failure mode, not getting the email and not realizing it)

                                Oops.

                                So… I wrote a Perl module that the jobs were “registered” with… and that became the dashboad of my system.

                                Instead of me having to remember the email.

                                1 Antwort Letzte Antwort
                                0
                                • vkc@linuxmom.netV vkc@linuxmom.net

                                  If you're doing a pull style backup, where your backup target pulls the files from the main machine, test what happens if the host's directory got encrypted, unmounted, or deleted.

                                  This is a gotcha I've seen hundreds of times before. "We back everything up!" Sure, but when they encrypted your /opt/appdir/ and you pulled those files, guess what you just did?!?

                                  What if the drive got borked on the host machine... did you just delete your backups?

                                  Test that crap!

                                  adrienandrem@pouet.chapril.orgA This user is from outside of this forum
                                  adrienandrem@pouet.chapril.orgA This user is from outside of this forum
                                  adrienandrem@pouet.chapril.org
                                  schrieb zuletzt editiert von
                                  #17

                                  @vkc Do you have pointers to some generic documentation?
                                  (Because I'd say it should be a mandatory chapter of every software doc.)
                                  Like how do I test restoring my phone backup without having another phone? 🤔

                                  1 Antwort Letzte Antwort
                                  0
                                  • vkc@linuxmom.netV vkc@linuxmom.net

                                    Test your damn backup scripts.

                                    Don't just assume everything is working. Unplug servers and test it then. How will you know it's broken?

                                    If you aren't testing your backups, you don't have backups.

                                    flywheel@friendica.dkF This user is from outside of this forum
                                    flywheel@friendica.dkF This user is from outside of this forum
                                    flywheel@friendica.dk
                                    schrieb zuletzt editiert von
                                    #18

                                    @vkc For me running backup is a manual process - where I check my cloud and external backup every time and I try to remember to change password for the encryption once a month

                                    A few years back I had it running as a cron job, with an email notification - but after a while I usually get infected with notification blindness and suddenly I realize - often when adding new things to the backup script or tidying up - why haven't I heard anything from the server for weeks ? But I've been incredible lucky in the past, only my desktop system drives seems to die on me.

                                    1 Antwort Letzte Antwort
                                    0
                                    • vkc@linuxmom.netV vkc@linuxmom.net

                                      Test your damn backup scripts.

                                      Don't just assume everything is working. Unplug servers and test it then. How will you know it's broken?

                                      If you aren't testing your backups, you don't have backups.

                                      talexb@fosstodon.orgT This user is from outside of this forum
                                      talexb@fosstodon.orgT This user is from outside of this forum
                                      talexb@fosstodon.org
                                      schrieb zuletzt editiert von
                                      #19

                                      @vkc Corollary: There's only one reason to make a backup: it allows you to do a restore. What, you don't have a workflow or a plan for doing a restore?

                                      You should probably do that.

                                      1 Antwort Letzte Antwort
                                      0
                                      • vkc@linuxmom.netV vkc@linuxmom.net

                                        Test your damn backup scripts.

                                        Don't just assume everything is working. Unplug servers and test it then. How will you know it's broken?

                                        If you aren't testing your backups, you don't have backups.

                                        arcanechat@fosstodon.orgA This user is from outside of this forum
                                        arcanechat@fosstodon.orgA This user is from outside of this forum
                                        arcanechat@fosstodon.org
                                        schrieb zuletzt editiert von
                                        #20

                                        @vkc wait, you guys make backups?

                                        1 Antwort Letzte Antwort
                                        0
                                        • vkc@linuxmom.netV vkc@linuxmom.net

                                          Here's a tip: your email provider (Gmail, Fastmail, ProtonMail, etc) probably has a way to send SMTP email with an app password.

                                          Use a tool like postfix or (my favorite recently) msmtp to send yourself an email **every time your backup completes**. Then, test what happens if the backup doesn't complete. If your mobile provider has an email->SMS bridge, you can even send yourself a text message.

                                          Will you ever know if your backup doesn't work? Figure that out BEFORE you deploy. While it's fresh.

                                          betterthanlast@mstdn.socialB This user is from outside of this forum
                                          betterthanlast@mstdn.socialB This user is from outside of this forum
                                          betterthanlast@mstdn.social
                                          schrieb zuletzt editiert von
                                          #21

                                          @vkc this is so right! I send myself a message via a ntfy script when each backup finishes and it alerted me to the backups having stopped. I can’t remember what caused it, but it was a very easy fix and I have since had to use it… life saver!

                                          1 Antwort Letzte Antwort
                                          0
                                          Antworten
                                          • In einem neuen Thema antworten
                                          Anmelden zum Antworten
                                          • Älteste zuerst
                                          • Neuste zuerst
                                          • Meiste Stimmen



                                          Copyright (c) 2025 abSpecktrum (@abspecklog@fedimonster.de)

                                          Erstellt mit Schlaflosigkeit, Kaffee, Brokkoli & ♥

                                          Impressum | Datenschutzerklärung | Nutzungsbedingungen

                                          • Anmelden

                                          • Du hast noch kein Konto? Registrieren

                                          • Anmelden oder registrieren, um zu suchen
                                          • Erster Beitrag
                                            Letzter Beitrag
                                          0
                                          • Home
                                          • Aktuell
                                          • Tags
                                          • Über dieses Forum