this post was submitted on 25 May 2024
653 points (99.2% liked)

linuxmemes

20761 readers
1849 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
 

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

top 50 comments
sorted by: hot top controversial new old
[โ€“] [email protected] 8 points 3 months ago* (last edited 3 months ago) (1 children)

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

[โ€“] [email protected] 1 points 3 months ago

lol ๐Ÿคฃ๐Ÿคฃ๐Ÿคฃ

[โ€“] [email protected] 36 points 3 months ago (3 children)

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] 5 points 3 months ago
  • config.json.almost
  • config.json.broken
  • config.json.shouldwork
[โ€“] [email protected] 7 points 3 months ago* (last edited 3 months ago)

Sigh...

git revert HEAD
echo \*.json.\* >> .gitignore
git commit
[โ€“] [email protected] 5 points 3 months ago

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

[โ€“] [email protected] 12 points 3 months ago (1 children)

Gmail says sending myfile.zip is not allowed.

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

[โ€“] [email protected] 4 points 3 months ago

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

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

[โ€“] [email protected] 6 points 3 months ago

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

Oh.

[โ€“] [email protected] 1 points 3 months ago

Did this with PAM the other day and nearly locked myself out.

[โ€“] [email protected] 5 points 3 months ago* (last edited 3 months ago) (2 children)

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] 2 points 3 months 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] 3 points 3 months 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.

[โ€“] [email protected] 3 points 3 months ago (1 children)

*~

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

[โ€“] [email protected] 4 points 3 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.

[โ€“] [email protected] 3 points 3 months ago (1 children)

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

[โ€“] [email protected] 2 points 3 months ago (1 children)

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

[โ€“] [email protected] 2 points 3 months ago* (last edited 3 months ago)

Acceleration would be 0.50 m/s^2

[โ€“] [email protected] 6 points 3 months ago (1 children)

.bak is good, ranger even hides files with it

[โ€“] [email protected] 1 points 3 months ago

This is what I've always used as well

[โ€“] [email protected] 9 points 3 months ago (1 children)

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

[โ€“] [email protected] 20 points 3 months ago* (last edited 3 months ago) (1 children)

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

[โ€“] [email protected] 7 points 3 months ago (1 children)

Rename to .old

Bam file is gone.

??? Confused look.

The heck?

Ctrl + h

Oh there it is!

[โ€“] [email protected] 8 points 3 months ago (1 children)

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

[โ€“] [email protected] 2 points 3 months ago (1 children)

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

[โ€“] [email protected] 2 points 3 months 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] 7 points 3 months ago* (last edited 3 months ago)

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

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

[โ€“] [email protected] 2 points 3 months ago (1 children)
[โ€“] [email protected] 1 points 3 months ago

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!

load more comments
view more: next โ€บ