- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Verify backup
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
01-15-2003 05:26 PM
01-15-2003 05:26 PM
Verify backup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2003 05:30 PM
01-15-2003 05:30 PM
Re: Verify backup
Assuming your tape drive is /dev/rmt/0m
# tar tvf /dev/rmt/0m
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2003 05:30 PM
01-15-2003 05:30 PM
Re: Verify backup
Use the -t tar parameter as follows
tar tvf tarfile.tar
or if to the tape
tar tvf /dev/rmt/0m
This will list all the files tarred. As long as no errors are reported AND all files are listed - you're good to go.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2003 05:34 PM
01-15-2003 05:34 PM
Re: Verify backup
tar is archaic (as is cpio and pax and dump) for modern Unix systems. tar will be useless if your system disk goes bad, or if any of your files are larger than 2Gb. tar should used as an interchange program between machines. Backup should consist of fbackup (for individual files and directories) and Ignite/UX (make_tape_recovery), or if there are dozens of gigabytes involved, a commercial backup program like HiBack or Omniback.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2003 05:46 PM
01-15-2003 05:46 PM
Re: Verify backup
thx all replay , if I add list out the files "tar -tvf" , how can I know the backup is successful , cos the backup may staill have the following error:
the directory is not exist ,
no backup was backup , some files are dead etc. thx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2003 06:01 PM
01-15-2003 06:01 PM
Re: Verify backup
Create a backup list first of what is going to be backed up and then after writing the tape, verify the contents of the tape and compare the two lists. Again no guarantee. 'fbackup' is far more efficient than 'tar' as well. It does take a snapshot of what it is going to backup before it does it. The only way of getting an exact copy of a filesystem etc is to split the mirror on a filesystem (logical volume), if you have one. If you then copy it to tape, again no guarantee that the contents of the tape are the same as on the disk. Backups to tapes are an assumption only that the files can be recovered.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2003 08:09 AM
01-16-2003 08:09 AM
Re: Verify backup
- create a list of files to backup
- perform an 'mt rew' and if fail, stop, and send email to admin (can't use tape or no tape in drive)
- backup files to tape
- read file list from tape
- normalize the two files: i.e. with script commands make the fields etc be the same in both files
- compare the files
- if differences, send email to admin
- take the file list read from tape, rename it after the date, and keep as an on-line backup listing
- delete old on-line listings
There's a few sticky things. Since the tape is slow, files in temporary directories and spool directories appear and/or go away during the backup, causing differences in the file listings that you don't really care about.
But works well for us.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2003 08:35 AM
01-16-2003 08:35 AM
Re: Verify backup
This works fine!
tar
STATUS=$?
case $STATUS in
0) echo "Tar successful"
;;
*) echo "Tar have warnings/errors - status: $STATUS"
;;
esac
Rgds.