Welcome to Incremental Social! Learn more about this project here!
Check out lemmyverse to find more communities to join from here!

d_k_bo ,

That's why you put your config files in a git repository

stepan ,
@stepan@lemmy.cafe avatar

Even the system files like those in /etc ?

d_k_bo ,

No. I only set up /etc/fstab and /etc/ssh/sshd_config once and they will never change.

herrcaptain ,

Package manager: This package contains an updated sshd_config file, would you like to replace your existing file with the package maintainer's updated file?

Me, every time: LOL, no

fossphi ,

Shit, thanks for reminding me. I needed to take care of some pacdiff files

exu ,
@exu@feditown.com avatar

Yes. I use a hacky script to copy them to the right place

Rustmilian ,
@Rustmilian@lemmy.world avatar

I do the same thing.

Prunebutt ,
QuarterSwede ,
@QuarterSwede@lemmy.world avatar

Of course there is. Love it.

PoolloverNathan ,
Prunebutt ,

I use NixOS btw ;)

skulbuny ,
@skulbuny@sh.itjust.works avatar

Sounds like Nixos with extra steps

iopq ,

What do you mean? My NixOS config files are in a git repository

digdug ,

You could set up btrfs snapshots, too. Of course, don't forget to take a snapshot before you break your configs.

lud ,

Wouldn't you need to use btrfs for that?

How well does btrfs work with full disk encryption?

loutr ,
@loutr@sh.itjust.works avatar

Works great on my laptop. It takes automatic snapshots before and after running the package manager, no problem so far.

bappity ,
@bappity@lemmy.world avatar

BAK IN MY DAY 👵👴

Chocrates ,

Yep I still add .bak to mine

_______ ,

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)
user224 ,
@user224@lemmy.sdf.org avatar

config.conf
config.conf.backup
config.conf.testing
config.conf.old
config.conf.default
config.conf.example

JasonDJ ,

Sigh...

git revert HEAD
echo \*.json.\* >> .gitignore
git commit
Deway ,
  • config.json.almost
  • config.json.broken
  • config.json.shouldwork
nobleshift ,
@nobleshift@lemmy.world avatar

[Thread, post or comment was deleted by the author]

  • Loading...
  • user1234 ,

    That sounds like a virus.

    bobs_monkey ,

    /usr/share/bin/notporn/seriously/definitelynotporn

    user1234 ,

    FTFY: definitelynotpr0n

    Don't want it to be easily searchable.

    possiblylinux127 ,
    @possiblylinux127@lemmy.zip avatar

    chmod 600

    PoolloverNathan ,

    chmod 000 and put the rest of the linux in a user namespace so not even root can see inside.

    dogsnest ,
    @dogsnest@lemmy.world avatar
    0x4E4F OP ,
    @0x4E4F@sh.itjust.works avatar

    True story... happens all the time.

    Knock_Knock_Lemmy_In ,

    Gmail says sending myfile.zip is not allowed.

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

    user224 ,
    @user224@lemmy.sdf.org avatar

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

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

    LaggyKar ,
    @LaggyKar@programming.dev avatar

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

    0x4E4F OP ,
    @0x4E4F@sh.itjust.works avatar

    It's just a playful thing dolphins do 😊.

    Johanno ,

    Rename to .old

    Bam file is gone.

    ??? Confused look.

    The heck?

    Ctrl + h

    Oh there it is!

    meekah ,
    @meekah@lemmy.world avatar

    I never really have hidden files off, so I wasn't even aware dolphin does this lol

    jws_shadotak ,

    I absolutely despise the idea of "hidden" files. I don't understand the purpose of not showing them.

    PoolloverNathan ,

    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.

    ahal ,

    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, ...

    0x4E4F OP ,
    @0x4E4F@sh.itjust.works avatar

    lol 🤣🤣🤣

    Chocrates ,

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

    Nomad ,

    Etckeeper

    LordOfLocksley ,

    .bkp_YYYYMMDD for me

    0x4E4F OP ,
    @0x4E4F@sh.itjust.works avatar

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

    And then wonder "wtf did I change them 🤔".

    Config files need git nowadays.

    Mouselemming ,

    I'm seeing this on oldsh.itjust.works, feels extra meta

    https://oldsh.itjust.works/post/19853381

    abadbronc ,

    Fuck it. What's the worst that could happen?

    Oh.

    Crow ,

    .bak is good, ranger even hides files with it

    Tier1BuildABear ,
    @Tier1BuildABear@lemmy.world avatar

    This is what I've always used as well

    whotookkarl , (edited )
    @whotookkarl@lemmy.world avatar

    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.

    lseif ,

    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 ,

    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.
    Phoenix3875 ,

    Use NixOS

    PoolloverNathan ,

    People here really hate our distro for some reason. Isn't it just Arch with extra steps (and all the configs in one file)? Everyone likes Arch! The definition of Arch is extra steps!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • linuxmemes@lemmy.world
  • incremental_games
  • meta
  • All magazines