pacfiles-mode icon indicating copy to clipboard operation
pacfiles-mode copied to clipboard

Store backups in /tmp

Open mcp292 opened this issue 3 years ago • 2 comments

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.

mcp292 avatar Sep 24 '21 15:09 mcp292

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.

UndeadKernel avatar Sep 27 '21 08:09 UndeadKernel

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.

mcp292 avatar Sep 28 '21 19:09 mcp292