UndeadKernel / pacfiles-mode

Emacs major mode to manage pacnew and pacsave files left by the pacman Arch tool
MIT License
42 stars 2 forks source link

Store backups in /tmp #9

Open mcp292 opened 3 years ago

mcp292 commented 3 years ago

It would be a really nice feature to store originals of all modified pacfiles in /tmp.

Example use case: I completely F'd my shadow file during merge and it would be really nice to sideload my filesystem (because I can't log in now) and just cp /tmp/etc/shadow /etc/shadow.

UndeadKernel commented 3 years ago

Thank you for the suggestion @mcp292. I'll consider it, maybe having a "backup" folder could be of use, indeed. Note, though, that the "/tmp" folder is usually a temporary mount point and its contents are deleted at each shutdown.

mcp292 commented 3 years ago

Right thank you for the reminder! I was remembering it as being deleted after a number of days, but that might've been what I set up on my local ~/tmp. In any case, the solution to my problem was finding a /etc/shadow- backup file. I don't know who created it, but am trying to find out. Maybe take a similar, but more consistent, approach.