52
We've all been there... (sh.itjust.works)

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

all 24 comments
sorted by: hot top controversial new old
[-] _______@poeng.link 9 points 5 months 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)
[-] JasonDJ@lemmy.zip 1 points 5 months ago* (last edited 5 months ago)

Sigh...

git revert HEAD
echo \*.json.\* >> .gitignore
git commit
[-] d_k_bo@feddit.de 4 points 5 months ago

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

[-] skulbuny@sh.itjust.works 5 points 5 months ago

Sounds like Nixos with extra steps

[-] iopq@lemmy.world 3 points 5 months ago* (last edited 5 months ago)

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

[-] bappity@lemmy.world 4 points 5 months ago
[-] Chocrates@lemmy.world 1 points 5 months ago

Yep I still add .bak to mine

[-] Mouselemming@sh.itjust.works 1 points 5 months ago* (last edited 5 months ago)

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

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

[-] ahal@lemmy.ca 1 points 5 months ago* (last edited 5 months 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, ...

[-] Knock_Knock_Lemmy_In@lemmy.world 1 points 5 months ago

Gmail says sending myfile.zip is not allowed.

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

[-] dogsnest@lemmy.world 1 points 5 months ago* (last edited 5 months ago)

. . . (sigh...)

[-] Chocrates@lemmy.world 0 points 5 months ago

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

[-] Nomad@infosec.pub 2 points 5 months ago
[-] marcos@lemmy.world 0 points 5 months ago

*~

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

[-] darkpanda@lemmy.ca 1 points 5 months 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.

this post was submitted on 25 May 2024
52 points (100.0% liked)

linuxmemes

21138 readers
494 users here now

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!

    founded 1 year ago
    MODERATORS