- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: SAM automated backup problem
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
тАО06-07-2001 05:03 AM
тАО06-07-2001 05:03 AM
SAM automated backup problem
I have an automated backup created with SAM. I wanted to exclude any file with a .log or .dbf extension. I used a "*" as the wildcard for these files. i.e. exclude /home/oracle/*.log. This didn't work. The system still tries to backup the files, then errors because they are in use.
Is there a way, using SAM, to exclude files with some type of wildcard?
Thanks,
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2001 05:23 AM
тАО06-07-2001 05:23 AM
Re: SAM automated backup problem
http://us-support.external.hp.com/cki/bin/doc.pl/sid=d6656a540ac66e4267/screen=ckiDisplayDocument?docId=200000047604967
Richard Darling
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2001 05:28 AM
тАО06-07-2001 05:28 AM
Re: SAM automated backup problem
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2001 05:42 AM
тАО06-07-2001 05:42 AM
Re: SAM automated backup problem
This might be a case where it would be easier to run the fbackup command from the prompt. Looking at the man page for fbackup, it will grab all the files in a graph file if you use the -g option. I have not used this myself, but it appears that you can speficy a text file that has all the files (full paths) that you want. Therefore, you can should be able to use the find command to grab everything without a .log or .dbf (using the not option and -name) to create the file list, and then send it to fbackup, all with a cron job. I'm just throwing out an idea here (can anyone out there confirm that this will work?). Good luck.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2001 05:58 AM
тАО06-07-2001 05:58 AM
Re: SAM automated backup problem
Something like this
find / -name *.log > /tmp/ex_log
for i in `cat /tmp/ex_log`
do
echo "e ${i}" >> /tmp/graph_file
done
vi /tmp/graph_file
#this should be a clean file with no comment lines in it. for the mount points you want to backup use a "i" it doesn't matter what order you put it in. example:
i /
i /home
i /usr
i /u01
e /tmp/xxx.log
you get the idea, save the file.
if you set it in cron for automation, put it in a script or just this entry with the fully qualified path.
/usr/sbin/fbackup -v -0 -g /tmp/graph_log -I /tmp/fbck_what -f /dev/rmt/0m
the "-I /tmp/fbck_what" will just create a log of what was backed up if you want it if not leave it out. Hope this helps.
Good Luck!1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2001 06:03 AM
тАО06-07-2001 06:03 AM
Re: SAM automated backup problem
Mark's suggestion to build a graph file for 'fbackup' dynamically is exactly the approach I would use. Graphs are extremely flexible. You can (i)nclude whole directories and simultaneously (e)xclude selected subdirectories and/or files.
You could use 'find' or 'ls' with wildcard matching and or filter a list of files with 'awk' if you want to get fancy.
...JRF...
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2001 08:32 AM
тАО06-07-2001 08:32 AM
Re: SAM automated backup problem
I don't generally administer this machine. I was trying to leave the automated backup through SAM.
I'll have to put each file is a separate exclusion
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2001 08:41 AM
тАО06-07-2001 08:41 AM
Re: SAM automated backup problem
crontab -e
00 23 * * 1-5 /usr/sbin/fbackup -v -0 -g /tmp/graph_log -I /tmp/fbck_what -f /dev/rmt/0m
then save
this will run 00 minute, 23 hour, 1-5 monday-friday - modify those the way you want (man cron for help) however i would suggest moving the /tmp/graph_log to a safer place like /usr/local/bin or something.