• redlemace
    link
    fedilink
    arrow-up
    121
    arrow-down
    1
    ·
    29 days ago

    That’s on you then. Restore from backup and accept having lost a day’s work.

    • CombatWombat@feddit.online
      link
      fedilink
      English
      arrow-up
      51
      arrow-down
      4
      ·
      29 days 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
        link
        fedilink
        arrow-up
        90
        ·
        29 days ago

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

          • criss_cross
            link
            fedilink
            arrow-up
            21
            ·
            29 days ago

            Oh I’m aware. I’m just clarifying that a .git folder isn’t a backup lol.

            • devfuuu
              link
              fedilink
              arrow-up
              7
              arrow-down
              1
              ·
              28 days ago

              What? But it says right there on the box. GIT = Great Interface for Takups

        • one_old_coder@piefed.social
          link
          fedilink
          English
          arrow-up
          26
          arrow-down
          1
          ·
          29 days ago

          Yep, make sure that you pushed somewhere on a private branch. But the new devs with their nocode-NoSQL-AI tools have a hard time understanding difficult concepts like “files” or “folders.”

        • CombatWombat@feddit.online
          link
          fedilink
          English
          arrow-up
          9
          arrow-down
          3
          ·
          28 days ago

          Maybe I’m old fashioned, but I feel like programming tools shouldn’t blow away your checked in changes, even if you haven’t pushed yet. You do you, though.

        • Trail
          link
          fedilink
          arrow-up
          3
          ·
          28 days ago

          Image a git commit of 50k files. Lol.

        • NotMyOldRedditName
          link
          fedilink
          arrow-up
          3
          ·
          28 days ago

          I can sometimes be bad about pushing my inflight work, but I start getting anxious about it once I’ve reached a certain point. Like I might be brushing my teeth and be like, oh shit i should push that up.

      • Jo Miran@lemmy.ml
        link
        fedilink
        arrow-up
        11
        ·
        29 days 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.

          • Jo Miran@lemmy.ml
            link
            fedilink
            arrow-up
            3
            ·
            edit-2
            28 days 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.

          • Jason2357@lemmy.ca
            link
            fedilink
            arrow-up
            2
            ·
            28 days 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.

        • redlemace
          link
          fedilink
          arrow-up
          1
          ·
          28 days 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
            ·
            28 days ago

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

        • Wirlocke@lemmy.blahaj.zone
          link
          fedilink
          arrow-up
          1
          ·
          28 days 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
            6
            ·
            28 days 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
        link
        fedilink
        arrow-up
        4
        ·
        29 days 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.

      • redlemace
        link
        fedilink
        arrow-up
        7
        ·
        29 days ago

        That’s the new normal.

        Maybe for some but then i’m happy to be old-school. I can live with the fact not everyone can/wants to follow the 3-2-1 strategy but expect no sympathy if you have no backup’s at all

      • America@sh.itjust.works
        link
        fedilink
        arrow-up
        6
        ·
        29 days ago

        That’s ridiculous. Why wouldn’t you just set Claude to back everything up before it deletes everything? Checkmate, atheists