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

68 points

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

permalink
report
reply
39 points

Sounds like Nixos with extra steps

permalink
report
parent
reply
8 points
*

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

permalink
report
parent
reply
15 points

Even the system files like those in /etc ?

permalink
report
parent
reply
31 points
9 points

Of course there is. Love it.

permalink
report
parent
reply
6 points

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

permalink
report
parent
reply
9 points

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

permalink
report
parent
reply
6 points

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

permalink
report
parent
reply
2 points

I do the same thing.

permalink
report
parent
reply
4 points

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

permalink
report
parent
reply
1 point

Wouldn’t you need to use btrfs for that?

How well does btrfs work with full disk encryption?

permalink
report
parent
reply
2 points

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

permalink
report
parent
reply
2 points
*
Deleted by creator
permalink
report
parent
reply
46 points

BAK IN MY DAY 👵👴

permalink
report
reply
23 points

Yep I still add .bak to mine

permalink
report
parent
reply
36 points

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)
permalink
report
reply
7 points
*

Sigh…

git revert HEAD
echo \*.json.\* >> .gitignore
git commit
permalink
report
parent
reply

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

permalink
report
parent
reply
5 points
  • config.json.almost
  • config.json.broken
  • config.json.shouldwork
permalink
report
parent
reply
17 points
Deleted by creator
permalink
report
reply
8 points

That sounds like a virus.

permalink
report
parent
reply
9 points

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

permalink
report
parent
reply
4 points

FTFY: definitelynotpr0n

Don’t want it to be easily searchable.

permalink
report
parent
reply
1 point
Deleted by creator
permalink
report
parent
reply
15 points
*

. . . (sigh…)

permalink
report
reply
4 points

True story… happens all the time.

permalink
report
parent
reply

linuxmemes

!linuxmemes@lemmy.world

Create post

Hint: :q!


Sister communities:

Community rules (click to expand)

1. Follow the site-wide rules
2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack members of the community for any reason.
  • Leave remarks of “peasantry” to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn. Even if you watch it on a Linux machine.
4. No recent reposts
  • Everybody uses Arch btw, can’t quit Vim, and wants to interject for a moment. You can stop now.

Please report posts and comments that break these rules!

Community stats

  • 6.6K

    Monthly active users

  • 1.3K

    Posts

  • 71K

    Comments