HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Backup graph file generation
Operating System - Linux
1828838
Members
2544
Online
109985
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
04-01-2008 02:56 AM
04-01-2008 02:56 AM
Dears,
I have oracle installed on HP UX machine
root@prodx/ >uname -a
HP-UX prodx B.11.11 U 9000/800 127414621 unlimited-user license
the oracle exports are taken to the directory
/oracle10g/export/
my export and backup scripts are stored in /home/oracle/scripts/
i am using this naming convention for my export files (dump and log)
daily : `date +%A`.dmp
weekly: `date +%y-%m-%B-%d-%a`.dmp
monthly: `date +%y-%m-%B`.dmp
I integrated the files to the fbackup script without any problems in my daily and weekly script, my question is for the monthly backup script
here what i am trying to do
rm m_graph
cd /oracle10g/export/
echo "`date +%y-%m-%B`.log" >> m_graph #monthly export log ilfe
echo "`date +%y-%m-%B`.dmp" >> m_graph #monthly export dump file
ls *Thu.* >> /home/oracle/scripts/m_graph #all weekly dump and log files
running the script as it is results in the following inside the m_graph file
08-04-April.log
08-04-April.dmp
08-03-March-06-Thu.dmp
08-03-March-06-Thu.log
08-03-March-13-Thu.dmp
08-03-March-13-Thu.log
08-03-March-20-Thu.dmp
08-03-March-20-Thu.log
08-03-March-27-Thu.dmp
08-03-March-27-Thu.log
these are the file i want to back them up, including the monthly and all last month weekly dump and log file, here is my backup command in the script
fbackup -0g /home/oracle/scripts/m_graph -f /dev/rmt/0m
but the problem is here
The backup graph must start each line with the i to include the line file or directory in the backup, but as you see i dont have the i option included, so my question is this
after i create the graph file, i want my script to add the following in each line
i /oracle10g/export/
how can i do this? this is urgent pls.
thx for any help offer.
I have oracle installed on HP UX machine
root@prodx/ >uname -a
HP-UX prodx B.11.11 U 9000/800 127414621 unlimited-user license
the oracle exports are taken to the directory
/oracle10g/export/
my export and backup scripts are stored in /home/oracle/scripts/
i am using this naming convention for my export files (dump and log)
daily : `date +%A`.dmp
weekly: `date +%y-%m-%B-%d-%a`.dmp
monthly: `date +%y-%m-%B`.dmp
I integrated the files to the fbackup script without any problems in my daily and weekly script, my question is for the monthly backup script
here what i am trying to do
rm m_graph
cd /oracle10g/export/
echo "`date +%y-%m-%B`.log" >> m_graph #monthly export log ilfe
echo "`date +%y-%m-%B`.dmp" >> m_graph #monthly export dump file
ls *Thu.* >> /home/oracle/scripts/m_graph #all weekly dump and log files
running the script as it is results in the following inside the m_graph file
08-04-April.log
08-04-April.dmp
08-03-March-06-Thu.dmp
08-03-March-06-Thu.log
08-03-March-13-Thu.dmp
08-03-March-13-Thu.log
08-03-March-20-Thu.dmp
08-03-March-20-Thu.log
08-03-March-27-Thu.dmp
08-03-March-27-Thu.log
these are the file i want to back them up, including the monthly and all last month weekly dump and log file, here is my backup command in the script
fbackup -0g /home/oracle/scripts/m_graph -f /dev/rmt/0m
but the problem is here
The backup graph must start each line with the i to include the line file or directory in the backup, but as you see i dont have the i option included, so my question is this
after i create the graph file, i want my script to add the following in each line
i /oracle10g/export/
how can i do this? this is urgent pls.
thx for any help offer.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2008 03:04 AM
- Tags:
- while loop
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2008 03:14 AM
04-01-2008 03:14 AM
Re: Backup graph file generation
Denis,
i want to thank u for your fast reply, it helped in creating the need file.
i will test it and update the thread as needed.
thx again dennis
i want to thank u for your fast reply, it helped in creating the need file.
i will test it and update the thread as needed.
thx again dennis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2008 10:42 PM
04-06-2008 10:42 PM
Re: Backup graph file generation
thank you alot dennis, this was very great issue.
thx again
thx again
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP