- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Multiples backup on DTL tape
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
тАО11-04-2004 09:10 PM
тАО11-04-2004 09:10 PM
Multiples backup on DTL tape
I would like to know which is the best way to backup the same directories on DLT tape.
I need to append data to the same backup tape.
What i think to do is :
# cd /backup_directory
#(tar cvf - my_directory | gzip -c > data.tar.gz) > data.log 2 >&1
# dd if=data.tar.gz of=/dev/rmt/c7t1d0BEST 1024
but I am not sure to not remove the last backup.
I know it is possible to use SAM to automate backup.
Thanks for your help
Regards
Laurent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-04-2004 09:16 PM
тАО11-04-2004 09:16 PM
Re: Multiples backup on DTL tape
Also you can user no rewind device each time you run tar.
tar -cvf /dev/rmt/0m "files"
For next backup
mt -f /dev/rmt/0m fsf 1
tar -cvf /dev/rmt/0mn "file"
Backups products like OB, Veritas netbackup, legato can do this vey easily.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-04-2004 09:30 PM
тАО11-04-2004 09:30 PM
Re: Multiples backup on DTL tape
Some possibilities :
. keep a trace of how many blocks your dd said it writes and place yourself at the right place
. Have a distinct file name each time and use tar rvf (append mode)
. use fbackup (that's the tool sam uses)
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-04-2004 11:54 PM
тАО11-04-2004 11:54 PM
Re: Multiples backup on DTL tape
RAC, I tried your commands with two different directories to backup.
When I do tar -tv, I do not see the first backup.
I tried :
# mt -f /dev/rmt/0m bsf 1
# tar -tv
but only second backup is available...
How can I check if my first backup is available on my DLT and how can I restore it ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2004 12:16 AM
тАО11-05-2004 12:16 AM
Re: Multiples backup on DTL tape
Even if it work, you should really have a look at fbackup, because, unless you have GNU tar, you will not be able to backup largefiles with tar.
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2004 12:41 AM
тАО11-05-2004 12:41 AM
Re: Multiples backup on DTL tape
I always tried mt with bsf 2 but tar -tv doesn't show data from first backup.
For fbackup, I do not think it is good solution because it is not possible to have several backups on the same tape. fbackup removes the last backup I believe.
Another solution is :
# tar cvf - my_directory > my_directory.tar
# tar cv my_directory.tar (first backup)
# tar rv my_directory.tar (second directory)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2004 01:22 AM
тАО11-05-2004 01:22 AM
Re: Multiples backup on DTL tape
You will have to use u option.
As I said, problem with tar uvf is that you will need to give a different name to the file you add (newer version of files may not be appended or will replace old ones).
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2004 04:28 AM
тАО11-05-2004 04:28 AM
Re: Multiples backup on DTL tape
Each file is followed by a special block called a 'tape mark', end of tape (on HP-UX) is normally indicated by a double tape mark.
Therefore a tape with three (for instance tar) files has the following structure...
where TM is a Tape Mark.
mt fsf and bsf skips the requested number of tape marks and leaves the tape positioned after the tape mark IN THE DIRECTION OF TAPE TRAVEL. Thus mt fsf will leave you positioned after a tape mark (at the start of the next file) but mt bsf leaves you BEFORE the tape mark.
If you therefore always rewind the tape and mt fsf the required number of files you will have no problem.
If you use mt bsf then try to read a file (tar tvf for instance) it will always read the tape mark and report an empty file (unless you are at the beginning of the tape). In your case, having done mt bsf 2, you need to run mt fsf 1 then run tar (or run tar twice, which has the same effect).
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2004 04:38 AM
тАО11-05-2004 04:38 AM
Re: Multiples backup on DTL tape
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2004 08:50 PM
тАО11-05-2004 08:50 PM
Re: Multiples backup on DTL tape
mt -t
(Make sure
2. Then copy your files to tape:
tar cvf
NOTE: To rewind your tape to the beginning, use:
mt -t
(
regards
SK