pacfiles-mode
pacfiles-mode copied to clipboard
Store backups in /tmp
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
.
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.
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.