- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: tar -r
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
08-16-2004 04:00 PM
08-16-2004 04:00 PM
tar -r
1st tar backup
tar cvf /dev/rmt/0m /tmp/a.txt
2nd tar backup
tar -r cvf /dev/rmt/0m /tmp/b.txt
Questions:
1) Is the above command and method correct if I want to append the file for the tar backup?
2) I try to man tar and found out this:
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.
May I know what is this statement means?
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2004 04:04 PM
08-16-2004 04:04 PM
Re: tar -r
If your using a tape, you cannot add a second backup to the tape immediately following the first. You can only use something like an archive that is on disk.
If you wish to append onto tapes cpio can be used.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2004 04:49 PM
08-16-2004 04:49 PM
Re: tar -r
Second command can not work as stated in the man page " you have referred it as"
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.
We can use this option on disks not tape drives. As stated by tully you can use cpio too for this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2004 05:16 PM
08-16-2004 05:16 PM
Re: tar -r
oic. Just wonder when we will use tar to put data into the hard disk?
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2004 06:27 PM
08-16-2004 06:27 PM
Re: tar -r
I have used
tar -rvf
This successfully appended the file to the tape and the existing data on the tape remains as well.
I was not aware that this is not supported. But when you want to append, you should not use the block size.
Hope this helps.
With regards,
Mohan.