- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Backup/Copy Database Files to Tape
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
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
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
тАО10-20-2004 01:08 AM
тАО10-20-2004 01:08 AM
/opt/oracle/data/orabackup
the files to copy to tape are:
IRDS.tar.Z
IRDS2.tar.Z
The tape drive is an HP Dat-72, address is:
0/0/1/0.3.0 [HP C7438A]
How do I go about this? Can I automate it? Also the files (IRDS.tar.Z, IRDS2.tar.Z) are a result of manally compressing IRDS.tar and IRDS2.tar respectively.
So can I automate:
compressing the files and copying them to tape?
Any help would be greatly appreicated. OS is 11.11 with all latest patches applied.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2004 01:18 AM
тАО10-20-2004 01:18 AM
Re: Backup/Copy Database Files to Tape
Just use fbackup in combination with cron.
MB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2004 01:26 AM
тАО10-20-2004 01:26 AM
Re: Backup/Copy Database Files to Tape
tar cvf IRDS*.tar /dev/rmt/0m
Will copy the files to tape.
cpio can do it.
fbackup can do it.
fbackup can handle files bigger than 2 GB. tar and cpio require patching to do that.
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
тАО10-20-2004 01:26 AM
тАО10-20-2004 01:26 AM
Re: Backup/Copy Database Files to Tape
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2004 01:26 AM
тАО10-20-2004 01:26 AM
Re: Backup/Copy Database Files to Tape
Just create the file /mytools/mybackup.sh
#! /bin/sh
your tar command
your compress command
fbackup -f /dev/rmt/om -i /opt/oracle/data/orabackup/IRDS.tar.Z
fbackup -f /dev/rmt/om -i /opt/oracle/data/orabackup/IRDS2.tar.Z
Now you can edit the cron and add the line /mytools/mybackup.sh >> /tmp/mybackup.output
Remember to us full path names: /usr/bin/tar, etc...
Regards, MB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2004 01:35 AM
тАО10-20-2004 01:35 AM
Re: Backup/Copy Database Files to Tape
One more query though. We have the Dat 72 HP tape drive. Tapes can hold like up to 72GB. The two files are 1.9GB and 2.5GB respectively. I plan on just overwriting the files as need be. Since my total is not even 5GB. Will this impact tape life and or files? Also how do I verify if files on tape are not corrupt and have in fact been copied successfully?
Many thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2004 01:44 AM
тАО10-20-2004 01:44 AM
Re: Backup/Copy Database Files to Tape
Steve,
You mentioed the device in last,
it shall be tar cvf /dev/rmt/0mn
just thought the newbie will get little puzzled..
Also you can copy the required files to a new directory..
cp -pr file1 file2 /tmp/
then
tar cvf /dev/rmt/0mn /tmp/
or
fbackup -fv /dev/rmt/0mn -i /tmp/
or
fbackup -fv /dev/rmt/0mn -i file1 -i file2
This shall work for you..
file1 and file2 will be absolute path name to your files..
Thanks
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2004 01:44 AM
тАО10-20-2004 01:44 AM
Re: Backup/Copy Database Files to Tape
fbackup (3025) WARNING: unable to read a volume header?
I'm using a 72GB tape, brand new. Should this warning be a concern?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2004 01:47 AM
тАО10-20-2004 01:47 AM
Re: Backup/Copy Database Files to Tape
That's a warning because fbackup never wrote any data to the tape.
Try and write again and the message shouldn't be there.
MB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2004 01:48 AM
тАО10-20-2004 01:48 AM
Re: Backup/Copy Database Files to Tape
mt -t /dev/rmt/0mn stat
or paste the output of what you are doing and what is the result..
you can also do
THanks
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2004 02:05 AM
тАО10-20-2004 02:05 AM
Re: Backup/Copy Database Files to Tape
Also I have to keep typing /usr/sbin/fbackup instead of just fbackup is there a way around this?
Many thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2004 02:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2004 02:21 AM
тАО10-20-2004 02:21 AM
Re: Backup/Copy Database Files to Tape
Edit your .profile and add the /usr/bin path to it.
MB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2004 03:47 AM
тАО10-20-2004 03:47 AM
Re: Backup/Copy Database Files to Tape
i do fbackup .... file 1 then fbackup file 2 but then I do the frecover and try to verify both files but only see the last file (file 2) listed. What gives?
also I then tried using tar but I don't think it worked. How do you verify if a file was copied to tape?
Urgent help required...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2004 03:54 AM
тАО10-20-2004 03:54 AM
Re: Backup/Copy Database Files to Tape
Try this:
fbackup -f /dev/rmt/om -i /opt/oracle/data/orabackup/IRDS.tar.Z /opt/oracle/data/orabackup/IRDS2.tar.Z
you can use frecover to view the data on the tape as I mentioned above.
Regards, MB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2004 04:05 AM
тАО10-20-2004 04:05 AM
Re: Backup/Copy Database Files to Tape
fbackup(1401): extra argument: /opt/oracle/data/orabackup/IRDS2.tar.Z ignored
fbackup(1004): session begins on Wed Oct 20 13:02:19 2004
fbackup(3041): output file /dev/rmt/0m is currently being used and not available
fbackup(3019): would you like to enter a new output file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2004 04:09 AM
тАО10-20-2004 04:09 AM
Re: Backup/Copy Database Files to Tape
irddba:INLAND8>tar cvf IRDS*.tar /dev/rmt/0m
a /dev/rmt/0m 0 blocks
irddba:INLAND8>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2004 04:12 AM
тАО10-20-2004 04:12 AM
Re: Backup/Copy Database Files to Tape
You should create a graph file containing the following lines:
i /opt/oracle/data/orabackup/IRDS.tar.Z
i /opt/oracle/data/orabackup/IRDS2.tar.Z
Now use the command:
fbackup -f /dev/rmt/0m -g graph
Regards, MB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2004 05:34 AM
тАО10-20-2004 05:34 AM
Re: Backup/Copy Database Files to Tape
TOTAL newbie here. Please explain more...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2004 05:40 AM
тАО10-20-2004 05:40 AM
Re: Backup/Copy Database Files to Tape
Put the two lines in there I mentioned before and there is your file named graph.
MB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2004 05:42 AM
тАО10-20-2004 05:42 AM
Re: Backup/Copy Database Files to Tape
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2004 05:48 AM
тАО10-20-2004 05:48 AM
Re: Backup/Copy Database Files to Tape
irddba:INLAND8>/usr/sbin/fbackup -f /dev/rmt/0m -g backup.graph
fbackup(1417): cannot open the dates file /var/adm/fbackupfiles/dates for reading
fbackup(1004): session begins on Wed Oct 20 14:44:58 2004
fbackup(3042): output file /dev/rmt/0m is not in a valid device state
fbackup(3019): would you like to enter a new output file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2004 05:51 AM
тАО10-20-2004 05:51 AM
Re: Backup/Copy Database Files to Tape
Create the folder /var/adm/fbackupfiles if not exist and put the file graph in there. Your file should be renamed to graph instead of backup.graph and moved to /var/adm/fbackupfiles
$ cd /var/adm/fbackupfiles
$ fbackup -f /dev/rmt/0m -g graph
This should do the thing...
Regards, MB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2004 06:07 AM
тАО10-20-2004 06:07 AM
Re: Backup/Copy Database Files to Tape
Do you also configured a cron job on your server?
Use the following command to edit your cron:
$ crontab -e
The fields are:
# Minute Hour MonthDay Month Weekday Command
Regards, MB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2004 06:21 AM
тАО10-20-2004 06:21 AM