- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: undelete
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2001 07:34 AM
05-02-2001 07:34 AM
undelete
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2001 07:40 AM
05-02-2001 07:40 AM
Re: undelete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2001 07:43 AM
05-02-2001 07:43 AM
Re: undelete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2001 07:53 AM
05-02-2001 07:53 AM
Re: undelete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2001 08:45 AM
05-02-2001 08:45 AM
Re: undelete
I thought that if you used the 'del' command, it would tuck the file somewhere (like a trash can on Windows) but then you had to remember to delete it from there. This doesn't work for rm, though. So I guess that the only "undo rm" type command would be "go get backup tape"
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2001 09:30 AM
05-02-2001 09:30 AM
Re: undelete
I forgot, thats how i undo my bad rm's, of course not that i ever have any!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2001 09:33 AM
05-02-2001 09:33 AM
Re: undelete
It only handle the last 15 deletions.
I have no Idea if it works with 11.
I've a unrm.sh file containing a binary and a man page.
The man page has the author's email
addy: rdg@fc.hp.com.
I remember geting it at some hp site but cannot find it now! I've attached
the shar file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2001 10:47 AM
05-02-2001 10:47 AM
Re: undelete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2001 04:40 AM
05-03-2001 04:40 AM
Re: undelete
For example, using the Lost&Found directory as a "trash" or mkdir trash directory.
cp /bin/rm /bin/rm.orig
vi /bin/rm
*begin of script*
/bin/mv $1 /trash_dir
*end of script*
Remeber where is (for file restore) and monitor disk space for trash directory
hope this helps
regards Davide
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2001 06:09 AM
05-03-2001 06:09 AM
Re: undelete
mv /bin/rm /bin/rm.orig
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2001 11:19 AM
05-04-2001 11:19 AM
Re: undelete
Also, the script should probably check if it's running interactively and just call rm if it's not.