- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Script to cleanup make_net_recovery archives and d...
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
01-19-2004 09:36 AM
01-19-2004 09:36 AM
Script to cleanup make_net_recovery archives and dir /var/opt/ignite/clients....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2004 09:48 AM
01-19-2004 09:48 AM
Re: Script to cleanup make_net_recovery archives and dir /var/opt/ignite/clients....
I would let make_net_recovery handle it than writing my own script. By default, make_net_recovery will keep two archives. Next time it will remove the oldest archive after creating the archive.
You can write a script using find and mtime. But if you don't create any archive in 120days, you will not have any archives for that client left on the ignite server. So I lean towards letting make_net_recovery handle it.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2004 10:15 AM
01-19-2004 10:15 AM
Re: Script to cleanup make_net_recovery archives and dir /var/opt/ignite/clients....
In my work place we run make_net_recovery every month on a client system so removing older ones is not a problem.We want to have make_net_recovery itself do the cleanup when it runs the 3rd time on a client but sometimes we rebuild a server,decommission a server and a make_net_recovery has n't been done for some months in which case there are archives for that client that are sitting out there for several days consuming disk space.It would be more appropriate if we removed the older ones.I am writing a script using find like
find $Archives_Dir -type f -mtime +60 -exec rm {} \;
find /var/opt/ignite/clients/*/recovery -type f -mtime +60 -exec rm {} \;
When I use ll instead of rm in -exec option I see the files in sub-directories below /var/opt/ignite/clients/*/recovery being selected for removal which is what I expected but it does n't list out the sub-directory itself for removal even If I try it with type d or without a type option at all.Can you throw some light on this piece of the script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2004 10:33 AM
01-19-2004 10:33 AM
Re: Script to cleanup make_net_recovery archives and dir /var/opt/ignite/clients....
I would write like this
find $DIR -mtime +60 |xargs rm -rf
If you are two particular, you can do
find $DIR \( -type f -o -type d \) -mtime +60 |xargs rm -rf
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2004 12:13 PM
01-19-2004 12:13 PM
Re: Script to cleanup make_net_recovery archives and dir /var/opt/ignite/clients....
find /var/opt/ignite/clients/*/recovery -type d -mtime +60 -exec rm -rf {} \;
but I do not want to use rm -rf.(rm or rmdir will be fine but not rm -rf).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2004 12:42 PM
02-08-2004 12:42 PM
Re: Script to cleanup make_net_recovery archives and dir /var/opt/ignite/clients....
here is two scripts I wrote to report on all my make_net_recovery archive.logs in the last 5 days.
update the script variables, chmod and run.
enjoy,
Donny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2004 12:44 PM
02-08-2004 12:44 PM
Re: Script to cleanup make_net_recovery archives and dir /var/opt/ignite/clients....
and this forum only accept one attachment per submission.
here is the perl script that sends the report in html format.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2004 12:44 PM
02-08-2004 12:44 PM