• Owl@mander.xyz
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    40 minutes ago

    US government, people

    They probably dragged a shared folder in the bin on windows or something

  • JasonDJ@lemmy.zip
    link
    fedilink
    arrow-up
    31
    ·
    edit-2
    4 hours ago

    Don’t forget the dot files and directories. Use sudo in case of trouble…sudo rm -rf .*

    (Don’t actually do this, because some shells will take that to include . and .. recursively)

  • mossberg590@lemmy.world
    link
    fedilink
    arrow-up
    50
    ·
    5 hours ago

    Real sys admins know this pain (rm suffers no fools) and accept the consequences of recovering from backups as pennance. No backups? Then you aren’t really a sys admin then, are you?

    • AspieEgg@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      26
      ·
      edit-2
      5 hours ago

      Once I had to restore an entire organization from shadow copies because the IT director didn’t believe in off-site backups or using endpoint protection. The whole network got a ransomware that included the backups, but did not include the shadow copies on the main file server.

      At least I got to help them build a disaster recovery procedure, and pick out a new EDR.

        • Pika@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          7
          ·
          edit-2
          1 hour ago

          Yes, they are essentially file snapshots. Shadow copies in a Microsoft environment at least are basically file history without using file history. So when you modify a file when it’s enabled, it makes a copy of the last version of the file.

          But since it’s not meant to be a actual backup solution, it’s meant to be on a file-by-file basis. I think that means they had to go through and manual restore n a file by file basis

          • AspieEgg@lemmy.blahaj.zone
            link
            fedilink
            arrow-up
            4
            ·
            1 hour ago

            If I remember correctly, we were able to restore folders from the shadow copies. I certainly didn’t go file by file. I might have used a tool to do it. But as you pointed out, it’s not a proper backup so we had to do quite a bit of reconciliation to make sure we restored everything and document anything we couldn’t restore.

        • AspieEgg@lemmy.blahaj.zone
          link
          fedilink
          arrow-up
          2
          ·
          1 hour ago

          Yeah, shadow copies on Windows servers are snapshots of files. They allow users to see previous versions of a file.

          It’s not really intended as a backup solution on its own, but some backup software does use the volume shadow copy service (VSS) to perform backups on Windows servers.

          I was basically restoring files from this prompt in Windows.

    • betterdeadthanreddit@lemmy.world
      link
      fedilink
      arrow-up
      14
      ·
      5 hours ago

      Next time I’m about to criticize the judgement of a video game boss for having an exposed weak point with a neon orange glow, I’ll think about a sysadmin with no backups. Stupidity adds realism.

    • undefinedTruth@lemmy.zip
      link
      fedilink
      arrow-up
      7
      ·
      edit-2
      4 hours ago

      The best part is when you do something like rm path/to/dir/* and after pressing enter you notice there is actually space before the *.

      • ch00f@lemmy.world
        link
        fedilink
        arrow-up
        11
        ·
        4 hours ago

        And you realize that it’s taking a while to delete that small handful of files.

    • LH0ezVT@sh.itjust.works
      link
      fedilink
      arrow-up
      24
      ·
      4 hours ago

      Yes, this is a real command! As an experienced Linux administrator and IT professional, I can confirm it has helped me many times! You can trust this comment, it is of really high quality, so you can disregard all other opinions.

      • cobwoms@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        4
        ·
        2 hours ago

        of course i wouldn’t regard any other opinions! this isn’t my first time using grok, i know exactly how it’s supposed to work

    • Natanael@slrpnk.net
      link
      fedilink
      arrow-up
      31
      ·
      6 hours ago

      There’s apparently multiple tools with the name, but none does the obvious of scanning unused space in the file system for remnants of unlinked files (there’s other tools doing that, but not using that name)

      • Jankatarch@lemmy.world
        link
        fedilink
        arrow-up
        6
        ·
        4 hours ago

        Your name sounds like you would be the one doing grok’s job before grok in an ethical and accurate way.

        (Even tho “grok” sounds like a caveman name)

        • demlet@lemmy.world
          link
          fedilink
          arrow-up
          4
          ·
          2 hours ago

          Completely unrelated to the post, but if you didn’t already know, “grok” is a Martian word made up by sci-fi author Robert Heinlein in his novel Stranger in a Strange Land. Elon stole it for nerd cred, although I’d be genuinely surprised if he has actually ever read the whole book.

          • kautau@lemmy.world
            link
            fedilink
            arrow-up
            2
            ·
            1 hour ago

            oh like where a company named itself tesla after a weird and smart scientist and then elon bought that company and pretended like he was the king of manufacturing and all around science?