649
We've all been there... (sh.itjust.works)
submitted 1 month ago by 0x4E4F to c/[email protected]

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

top 50 comments
sorted by: hot top controversial new old
[-] [email protected] 68 points 1 month ago

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

[-] skulbuny 39 points 1 month ago

Sounds like Nixos with extra steps

[-] [email protected] 8 points 1 month ago* (last edited 1 month ago)

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

[-] [email protected] 15 points 1 month ago

Even the system files like those in /etc ?

[-] [email protected] 6 points 1 month ago

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

[-] [email protected] 9 points 1 month ago

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

[-] [email protected] 3 points 1 month ago

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

[-] [email protected] 6 points 1 month ago

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

[-] [email protected] 2 points 1 month ago

I do the same thing.

[-] [email protected] 5 points 1 month ago

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

load more comments (2 replies)
[-] [email protected] 46 points 1 month ago

BAK IN MY DAY ๐Ÿ‘ต๐Ÿ‘ด

[-] [email protected] 23 points 1 month ago

Yep I still add .bak to mine

[-] [email protected] 36 points 1 month 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)
[-] [email protected] 7 points 1 month ago* (last edited 1 month ago)

Sigh...

git revert HEAD
echo \*.json.\* >> .gitignore
git commit
[-] [email protected] 5 points 1 month ago
  • config.json.almost
  • config.json.broken
  • config.json.shouldwork
[-] [email protected] 5 points 1 month ago

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

[-] [email protected] 15 points 1 month ago* (last edited 1 month ago)
[-] 0x4E4F 4 points 1 month ago

True story... happens all the time.

[-] [email protected] 12 points 1 month ago

Gmail says sending myfile.zip is not allowed.

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

[-] [email protected] 4 points 1 month ago

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

If it works though ยฏโ \โ _โ (โ ใƒ„โ )โ _โ /โ ยฏ

[-] [email protected] 9 points 1 month ago

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

[-] 0x4E4F 20 points 1 month ago* (last edited 1 month ago)

It's just a playful thing dolphins do ๐Ÿ˜Š.

[-] [email protected] 7 points 1 month ago

Rename to .old

Bam file is gone.

??? Confused look.

The heck?

Ctrl + h

Oh there it is!

[-] [email protected] 8 points 1 month ago

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

load more comments (2 replies)
[-] Mouselemming 8 points 1 month ago* (last edited 1 month ago)

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

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

[-] [email protected] 8 points 1 month ago* (last edited 1 month 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, ...

load more comments (1 replies)
[-] [email protected] 7 points 1 month ago
[-] 0x4E4F 2 points 1 month 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] 7 points 1 month ago

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

[-] [email protected] 11 points 1 month ago
load more comments (1 replies)
[-] [email protected] 6 points 1 month ago

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

Oh.

[-] [email protected] 6 points 1 month ago

.bak is good, ranger even hides files with it

load more comments (1 replies)
[-] [email protected] 5 points 1 month ago* (last edited 1 month 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] 3 points 1 month 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.

load more comments (1 replies)
[-] [email protected] 3 points 1 month ago

Bet the world would be a happier place if we had cartoon physics

[-] 0x4E4F 2 points 1 month ago

Lower gravity by 20x, bam, instant cartoon physics.

[-] [email protected] 2 points 1 month ago* (last edited 1 month ago)

Acceleration would be 0.50 m/s^2

[-] [email protected] 3 points 1 month ago

*~

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

[-] [email protected] 4 points 1 month 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.

[-] [email protected] 2 points 1 month ago
load more comments (1 replies)
load more comments
view more: next โ€บ
this post was submitted on 25 May 2024
649 points (99.2% liked)

linuxmemes

19676 readers
75 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS