- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: RMAN backup to disk management techniques
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
Discussions
Discussions
Discussions
Forums
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
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
тАО02-04-2004 02:51 AM
тАО02-04-2004 02:51 AM
I am trying to develope an RMAN database backup to disk which I then will fbackup to tape, but am having a problem with the management of the disk files that are created.
Once the fbackup is complete, what do I do with the files that now exist on disk? I probably will leave them there until the next RMAN session, at which time I think I need to delete the last backupset of many files, so I don't fill up my disk space.
I know that RMAN can delete old backupsets, but how can I write a script (???) to find and delete all of the old backuppieces (of which there are many) that I made with the last backup?
Am I crazy for do it this way?
Thanks in advance,
Randy
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2004 02:57 AM
тАО02-04-2004 02:57 AM
Re: RMAN backup to disk management techniques
How about cron
find /dir -name "backup*" -mtime +1 -exec rm {}\;
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2004 03:06 AM
тАО02-04-2004 03:06 AM
Re: RMAN backup to disk management techniques
let cron do it.
The library that is referred to is not necessary to do what you want. You can crank this right after the fbackup returns code zero.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2004 03:30 AM
тАО02-04-2004 03:30 AM
Re: RMAN backup to disk management techniques
Can you send me the attachment differently, I am having trouble opening it.
Thanks,
Randy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2004 04:10 AM
тАО02-04-2004 04:10 AM
Re: RMAN backup to disk management techniques
check this version.
Regards,
Robeert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2004 04:19 AM
тАО02-04-2004 04:19 AM
Re: RMAN backup to disk management techniques
Thanks a ton .. I got it this time!
Randy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2004 06:38 PM
тАО02-04-2004 06:38 PM
Solutioni use a similar script to generate one for me:
=============================================
#!/bin/sh
echo "rman target sys/manager@mydb rcvcat rman/rman@catalog msglog /backup/rman/logfiles/rman_full_delete-`date +%d%m%y-%H%M`.log <
echo "allocate channel for delete type disk;"
for i in `ls -1 /backup*/rman/full/fs*/* `
do
echo "change backuppiece '$i' delete; "
done
echo "release channel;"
echo "exit;"
echo EOF
=============================================
hope this helps too!
regards
yogeeraj