Re: undo rm -rf *

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Thu, Mar 28, 2013 at 5:58 PM, Rick Walker <walker@xxxxxxxxxxxxxx> wrote:

> > I'm not a fan of trash directories.  They give you a second chance, but
> > you may end up not really deleting things you wanted to delete.  What
> > about a simple script something like this?

If you want something a bit more polished, you might check out
"nrm", available  at http://www.omnisterra.com/walker/linux/nrm.html


Thank you :)

 
It's a C program written to have the same arguments, return codes and
side effects as /bin/rm to the extent possible.

It moves files into the hidden sub-directory ".gone" instead of removing
files.  You can remove files with "-s" and you get sequenced backups -
all files are saved with a time-stamp suffix for fine grained file
restores.  There is a program "urm" to unremove the file, but most users
just do "ls .gone" to see what they've recently removed and then just
"mv" it back to their working directory.

There is an associated cron job that runs every day to permanently
remove all deleted files that are older than a configurable age.
The default is 3 days so you can get things back on Monday that you nuked
on Friday.

It's been running on HP-UX since about 1987, and on linux since 1997.
I'd consider it pretty solid at this point.

kind regards,
--
Rick Walker


--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux