- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Can I maintain multiple TAR BACKUP of the same dat...
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-03-2008 09:43 AM
01-03-2008 09:43 AM
Can I maintain multiple TAR BACKUP of the same data onto the same tape without overwriting ?
I have an existing TAR BACKUP on a tape. If I should perform again the same TAR BACKUP of the same data onto the same tape, will the old data be overwritten ?
Can I TAR backup the same data two times onto the same tape without overwriting the older one ?
Please help.
Regards,
Mawuena
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2008 09:50 AM
01-03-2008 09:50 AM
Re: Can I maintain multiple TAR BACKUP of the same data onto the same tape without overwriting ?
tar rvf /dev/rmt/omn yourfile_dir
Hasan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2008 09:52 AM
01-03-2008 09:52 AM
Re: Can I maintain multiple TAR BACKUP of the same data onto the same tape without overwriting ?
previous answer is wrong since tar rvf does not support for tape .
Hasan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2008 09:53 AM
01-03-2008 09:53 AM
Re: Can I maintain multiple TAR BACKUP of the same data onto the same tape without overwriting ?
tar backup version1
mt
tar backup version2
mt
....
...
...
do not use rewind type of tape device
Best Regards
Murat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2008 10:00 AM
01-03-2008 10:00 AM
Re: Can I maintain multiple TAR BACKUP of the same data onto the same tape without overwriting ?
Yes you can do that by using drivers like /dev/rmt/0mn instead of /dev/rmt/0m and command mt.
- driver /dev/rmt/0mn does not rewind the tape after closing.
- mt gives you the possibility to forward/backward from tape files to tape files on the tape.
- you must think in terms of "tape file" for each tar backup. That is : one tar = one tape file.
Now, suppose you make your first backup like this :
# mt -f /dev/rmt/0mn rew --> rewind the tape
# tar cvf /dev/rmt/0mn
Now, you want to do a second backup, without overwriting the first one :
# mt -f /dev/rmt/0mn rew --> rewind the tape
# mt -f /dev/rmt/0mn fsf 1 --> Skip first "tape file", in other words, skip first tar.
# tar cvf /dev/rmt/0mn
Now you want to do a third backup :
# mt -f /dev/rmt/0mn rew --> rewind the tape
# mt -f /dev/rmt/0mn fsf 2 --> Skip two "tape file", in other words, skip tar number 1 and number 2
# tar cvf /dev/rmt/0mn
Restore the second tar :
# mt -f /dev/rmt/0mn rew --> rewind the tape
# mt -f /dev/rmt/0mn fsf 1 --> Skip first backup
# tar xvf /dev/rmt/0mn [
And so on ...
The problem is that you must know exactly what is on your tape ...
Regards
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2008 06:28 PM
01-03-2008 06:28 PM
Re: Can I maintain multiple TAR BACKUP of the same data onto the same tape without overwriting ?
However, while you can append a tar backup to the end of a previous backup, it is a terrible idea. One mistake and you wipe out all of your backup data with no way to recover. And without very accurate records, there is no way to tell what is on the tape without a lot of work. And you can't really tell when you are going to run out of tape. TAR simply aborts leaving an incomplete record at the end of the tape.
For a test box or playing around at home, you can experiment but for production, it is a very unstable way to backup data.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2008 08:40 AM
01-04-2008 08:40 AM
Re: Can I maintain multiple TAR BACKUP of the same data onto the same tape without overwriting ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2008 08:58 AM
01-04-2008 08:58 AM
Re: Can I maintain multiple TAR BACKUP of the same data onto the same tape without overwriting ?
nope...not to *tape*. from "man tar"
r
Add the named file to the end of the archive. The same blocking factor used to create the archive must be used to append
to it. This option cannot be used if the archive is a tape.
As noted previously, it can be done, but you need to keep track of the file positions yourself. The only time I've ever done anything like this was when I was archiving several different directories of CAD files. One directory per archive and they were written sequentially to a non-rewind device.
I've never tried to append a new archive to an existing tape, as tapes are cheap and the consequences of an "off-by-one" error when appending are, potentially, disasterous.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2008 11:48 AM
01-04-2008 11:48 AM
Re: Can I maintain multiple TAR BACKUP of the same data onto the same tape without overwriting ?
> what is on your tape ...
> the consequences of an "off-by-one" error
> when appending are, potentially,
> disasterous.
It's been a long time since I used "tar" for
any serious backup work, but, as I recall, it
was pretty easy to use either "tar t" or
"mt fsf" to space ahead repeatedly until an
error status was returned. At that point, a
potential disaster seems pretty unlikely
(assuming that you aren't using a rewinding
tape device). Count 'em if you have doubts.
What I _do_ use regularly is VMS BACKUP
(which includes a /[NO]REWIND qualifier and
named save sets), and it's hard not to feel
smug about it. I routinely put about a
month's worth of daily incremental backups
onto one DLT cartridge. I'd be really
annoyed if I had to change that tape every
day. (Or if I had to guess which save set on
it went with any particular date.)