• CombatWombat@feddit.online
    link
    fedilink
    English
    arrow-up
    48
    arrow-down
    4
    ·
    1 day ago

    Funny story about those backups

    And because the damage extended to the .git project’s ‘objects,’ ‘refs’ and ‘logs’ folders, there was no way to recover the files and undo the catastrophe. The files were just gone in a puff of smoke.

    • criss_cross@lemmy.world
      link
      fedilink
      arrow-up
      86
      ·
      1 day ago

      No push to remote? If you’re working on something you care about you shouldn’t only have a local copy.

    • Jo Miran@lemmy.ml
      link
      fedilink
      arrow-up
      10
      ·
      1 day ago

      My backup scheme:

      Computer --> 3 different cloud drives and github.

      Also

      Computer --> Wyoming home NAS --> USB external drive (weekly), swapped out every year and the old one stored in a waterproof gunsafe in the basement.

      Wyoming home NAS --> Florida office NAS – > USB external drive (weekly)

      Wyoming home NAS --> Austin office NAS --> Tape (monthly) --> IronMountain for 7 years.

      If you are a single dev, all it takes is 14 USB sticks. 12 monthly backups and two for daily backups that you rotate weekly.

        • Jason2357@lemmy.ca
          link
          fedilink
          arrow-up
          2
          ·
          1 day ago

          Theoretically, they need tl be re-written every few years at most. Read everything off, format and re-write. Checking for corruption would be adviasable when you do it.

        • Jo Miran@lemmy.ml
          link
          fedilink
          arrow-up
          3
          ·
          edit-2
          1 day ago

          If you mean USB sticks (thumb drives), I have a few 20 year old ones that I dust off from time to time when all I need is something small. Some have been in a drawer for years before I touched them again.

      • Wirlocke@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        1
        ·
        1 day ago

        My backup scheme is either Github or Google Drive, whatever I have uploaded in Discord DMs, and a snowballing pile of unorganized hoarded files, which One Day™ I will sort.

        • Jo Miran@lemmy.ml
          link
          fedilink
          arrow-up
          5
          ·
          1 day ago

          One thing you could do is buy the.largest external drive you can get on black friday sales. Then just copy everything in it. No sort. Just dump it all in there. Think of it like clearing the table unto a large garbage bag. Then unplug it, put it in the closet, and do it again whenever you remember.

          Even a mess like that is better than no backup at all.

      • redlemace@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        1 day ago

        Also

        Good thing you added that. I’m so old-school/paranoid that I must have ownership of and physical access to the backup media to be able to count them as a backup.

        • Jo Miran@lemmy.ml
          link
          fedilink
          arrow-up
          2
          ·
          1 day ago

          I’m about to kick off a full offline backup of my GOG library over the holidays because I need that physical backup.

    • redlemace@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      1 day ago

      If you don’t include .git/ in your backup you simply have no backup.

      The .git folder is the heart of a Git repository. It is the hidden directory that Git uses to store all the information necessary for managing your project’s version control history. This folder is where Git keeps track of all the changes made to your files, allowing you to revert to previous versions, collaborate with others, and maintain a complete history of your project.