- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Fbackup check by counting stored files
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
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
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-2007 03:33 AM
05-14-2007 03:33 AM
I need to write a procedure to archive on tape an huge number of files. I started using fbackup and when entering into some details I came to a number of questions:
1) Can you plase suggest a method to check the list and the number of files that are stored on the tape by reading its header, so that I can easily compare it with the number of files on the disk (by using "ls | wc -l" command)? This way I can quickly check if I missed something.
2) In case we need to make a secure (even if sloow) check, can you please suggest a method to compare the actual content in the tape with the one in the disk? I normally use "frecover -r -N -v -f
Can you please help?
Thank you in advance!
Diego.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2007 04:18 AM
05-14-2007 04:18 AM
SolutionYou can read the index that 'fbackup' placed on the tape with: the '-I' option of 'frecover'.
To read the actual tape content use the '-N' switch with 'frecover' together with the '-v' option. This will read the tape just as it would to recover files. Check sums are verified during this process and errors reported. No actual recovery occurs.
You are correct insofar as this does not compare the tape contents to any disk version. To do this you would have to actually recover a file and compare it to the disk resident version. You could rename the disk resident version first and recover the file from tape OR you could recover the file(s) from tape to a local directory with the '-F' switch of 'frecover'. See the 'frecover' manpages for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2007 08:06 AM
05-14-2007 08:06 AM
Re: Fbackup check by counting stored files
frecover -I - -f /dev/rmt/whatever > /tmp/myfile
/tmp/myfile now has every file that was planned for backup. Note that it is not the same as the actual backup. Unless you run fbackup in single user, temporary files may come and go and you'll get a missing list at the end of the fbackup session. Note that ls | wc will only be approximately accurate for multiple directories. The reason is that ls will show directories on a separate line. Use the find command to more accurately count your source files.
2) The -N option does not compare byte-for-byte to the original data. The reason is that it is only slightly more accurate than using the special fbackup checksums but will be report errors when temporary files are gone after the backup is finished -- and it takes the same length of time to compare as it did to run the original backup. If it takes 2 hours to backup, then compare will take another 2 hours and will severely impact the system's operations as the data is read again.
fbackup records a data checksum for each record on tape. This is in addition to the tape's built-in error checking. This checkshum must pass through the entire data chain (tape - interface - cables - interface - memory) twice, once to the tape and once back for comparison. As a result the data is thoroughly checked with this checksum.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2007 08:24 AM
05-14-2007 08:24 AM
Re: Fbackup check by counting stored files
1) You can use -c
2) Using frecover "-I" option you can create an Index file. You can manipulate (using grep/awk) this index file as well to get count of files backed on tape.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2007 10:17 PM
07-11-2007 10:17 PM
Re: Fbackup check by counting stored files
the replies in this thread perfectly solved my question. Thank you!
Diego.