I usually use .bak… .old seems so… old.

  • Signature_________
    link
    fedilink
    3522 days ago

    Evolution:

    • config.json
    • config.json.bak
    • config.json.bak.old
    • config.json.bak.old2
    • config.json.bak.old3.stillworks
    • config.json.bak.old3.stillworks.DONTUSETHIS
    • config.json_(redownloaded_from_source)
    • @0x4E4FOP
      link
      English
      423 days ago

      True story… happens all the time.

  • @[email protected]
    cake
    link
    fedilink
    1222 days ago

    Gmail says sending myfile.zip is not allowed.

    Change it to myfile.zip.txt and everything is fine.

    • u/lukmly013 (lemmy.sdf.org)
      link
      fedilink
      English
      422 days ago

      It may be due to their processing.
      Better base64 -w 0 myfile.zip > myfile.zip.txt

      If it works though ¯⁠\⁠_⁠(⁠ツ⁠)⁠_⁠/⁠¯

  • LaggyKar
    link
    fedilink
    923 days ago

    Speaking of which, nowadays KDE hides files with these extensions for some reason

    • @0x4E4FOP
      link
      English
      20
      edit-2
      23 days ago

      It’s just a playful thing dolphins do 😊.

      • Johanno
        link
        fedilink
        723 days ago

        Rename to .old

        Bam file is gone.

        ??? Confused look.

        The heck?

        Ctrl + h

        Oh there it is!

          • @jws_shadotak
            link
            English
            222 days ago

            I absolutely despise the idea of “hidden” files. I don’t understand the purpose of not showing them.

            • @[email protected]
              link
              fedilink
              222 days ago

              It’s useful to hide clutter. It’s easier to look at the file you care about when the file~, file.old, .file.swp, #file#, file,v, etc. aren’t in the way.

  • @[email protected]
    link
    fedilink
    8
    edit-2
    22 days ago

    An old manager of mine’s backup solution was a cronjob that appended .old to every file then made a copy of the most recent one. So he had: file, file.old, file.old.old, file.old.old.old, …

    • @0x4E4FOP
      link
      English
      122 days ago

      lol 🤣🤣🤣

    • @0x4E4FOP
      link
      English
      223 days ago

      Ah, yes, I also add dates sometimes, very helpful 👍.

      And then wonder “wtf did I change them 🤔”.

      Config files need git nowadays.

  • @[email protected]
    link
    fedilink
    723 days ago

    Is there a tool to version your configs? I use chezmoi for my dotfiles but that doesn’t help system configs

    • Bonehead
      link
      fedilink
      123 days ago

      Is there a tool to version your configs?

      Yes, it’s usually sitting in front of the keyboard.

  • @[email protected]
    link
    fedilink
    5
    edit-2
    22 days ago

    I like adding a backup function to .profile that can take a file or list of files as an argument and make a copy with a date suffix on the file name, and same date additional backups just add a character like ~ at the end. It’s in version control, but if I’m testing a change it’s just faster to restore the file from a copy in the same place.

    • @[email protected]
      link
      fedilink
      322 days ago

      i so agree. i have a script that copies all file arguments into the directory .backups/YYYY-mm-DD-HHMM/ … handy for risky git operations too.

    • palordrolap
      link
      fedilink
      222 days ago

      Obligatory note that /etc/profile and ~/.profile are only run by login shells, and many terminal emulators do not execute a login shell by default.

      Unfortunately, there is no standard secondary place* that all shells execute, so check your chosen shell’s manual for what it does run on startup and put your functions into one of those. Preferably one that goes in your homedir.

      Alternatively have that file source ~/.profile assuming that won’t cause an infinite loop.

      * And not even a primary if you count *csh, but if you use those you have other problems.

  • @[email protected]
    link
    fedilink
    323 days ago

    *~

    But you should really have a backup system. And often you should have a version control system too.

    • @[email protected]
      link
      fedilink
      422 days ago

      Use etc-keeper, saves everything in a git repo and integrates with a bunch of package managers. Been using it for decades it feels like now.