- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: working with scripts
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
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
05-14-2002 06:32 AM
05-14-2002 06:32 AM
many thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2002 06:35 AM
05-14-2002 06:35 AM
Re: working with scripts
You should use the fbackup command & then use the graph files option to include what you want.
Do a man on fbackup
Also allows incrementals as well as incremental levels i.e. monthly / weekly / daily.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2002 06:38 AM
05-14-2002 06:38 AM
SolutionHave a look at the man pages for 'fbackup'. You can create "graph" files which can (both) include and exclude files and directories. The graph is a simple ascii file that looks like:
i /tmp
i /var
e /var/tmp
Note, therefore, that you can exclude subdirectories and/or files that have been included by virtue of selecting a higher member of a directory.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2002 06:39 AM
05-14-2002 06:39 AM
Re: working with scripts
If the files sizes are less than 2.0Gb then the simplest to do is to put files with the path ( using may be find ) in a file and do a
tar cvf /dev/rmt/0m `cat filename`
this will back up the files on the tape.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2002 06:42 AM
05-14-2002 06:42 AM
Re: working with scripts
hi
Use fbackup for taking selective backup it is veru useful.. See man pages of fbackup.
here is my command
fbackup -f /dev/rmt/0m -g fbackup.graph -v -d fbackup.log -u 2>&1|tee -a fbackup.out
this is simple script
in fbackup.graph include what u want to take backup with the complete path
fbackup.graph
i /stand # full filesys
i /var/adm/syslog.log # file
e /opt # exclude opt
e /usr # exclude usr
this is sample graph file
CTK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2002 06:46 AM
05-14-2002 06:46 AM
Re: working with scripts
# fbackup -f /dev/rmt/0m -g /tmp/graphfile
===> assuming your tape device is "0m"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2002 11:19 PM
05-14-2002 11:19 PM
Re: working with scripts
Workaround:
find ... | xargs tar cvf /dev/...
xargs takes stdin, loops over your command, ie tar, and hands over the argument list in chunks as big as possible
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2002 02:09 AM
05-15-2002 02:09 AM
Re: working with scripts
presuming you've installed GNU tar as ntar (not in HP's distribution, but for sure worthwhile to install), use it like this
# echo index > index
# find .... -type f >>index
# ntar -c -f /dev/rmt/0m -T index
the first line puts the index on tape first, so asking for what is on the tape now does not require you to read the whole tape with 'tar -t', but
# ntar -x -f /dev/rmt/0m index
will suffice