- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Backup and restore with tar and mt
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
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
тАО09-16-2002 10:26 AM
тАО09-16-2002 10:26 AM
Everyday I do a backup with tar cvf current_date.tar ./ in the current directory, where current_date is the time backup runs. So each day I have one tar file. I want to know how can I access the tape to display the files ? Supose today is friday and I want to restore the backup of last tuesday, how can I return three days and then restore ? I know it should be something like this :
mt -t /dev/rmt/0mn bsf 3 and then tar tvf ... Am I right ?
Can I backup files using fbackup and tar in the same tape ?
Thanks all,
Mauro
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2002 10:32 AM
тАО09-16-2002 10:32 AM
Solutiontar -cvf /dev/rmt/
the default device for tar is /dev/rmt/0m.... if you run an ioscan -funC tape, it will report the tape drives that are available... if the one you want to use is not the default, then you will need to specify the device:
tar -cvf /dev/rmt/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2002 10:40 AM
тАО09-16-2002 10:40 AM
Re: Backup and restore with tar and mt
tar cvf will overwrite , you need to use tar rvf to append to the tape , and then you cando the mt fsf and resoter , the better way would be to use fbackup or omni back
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2002 10:40 AM
тАО09-16-2002 10:40 AM
Re: Backup and restore with tar and mt
Thanks,
Mauro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2002 10:47 AM
тАО09-16-2002 10:47 AM
Re: Backup and restore with tar and mt
If your data is not being overwritten, then you may use the following to verify your data in the tape.
tar -tvf /dev/rmt/0mn
then, restore by
tar -xvf /dev/rmt/0mn bsf 3
Regards,
Anil (hope this helps)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2002 10:49 AM
тАО09-16-2002 10:49 AM
Re: Backup and restore with tar and mt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2002 11:00 AM
тАО09-16-2002 11:00 AM
Re: Backup and restore with tar and mt
# to create the original tape tar
tar -cvf /dev/rmt/
# to append to it
tar -rvf /dev/rmt/
# to view
tar -tvf /dev/rmt/0m
Ted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2002 11:17 AM
тАО09-16-2002 11:17 AM
Re: Backup and restore with tar and mt
1) tar cvf /dev/rmt/0mn test.tar
2) mt -t /dev/rmt/0mn bsf 1
3) tar tvf /dev/rmt/0mn
and received the message:
Tar: blocksize = 0; broken pipe?
What is it ?
Cheers,
Mauro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2002 11:19 AM
тАО09-16-2002 11:19 AM
Re: Backup and restore with tar and mt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2002 11:23 AM
тАО09-16-2002 11:23 AM
Re: Backup and restore with tar and mt
you want to backup the contents of /home on tape at default device /dev/rmt/0m
tar -cvf /dev/rmt/0m /home
that will create the tar image on the tape at device /dev/rmt/0m... and since this is the default tape device, the following will do the exact thing
tar -cv /home (drop the f and device since we use defaults)
to review what is now on tape:
tar -rv or tar -rvf /dev/rmt/0m