- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Question regarding TAR
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
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
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-20-2005 09:14 PM
09-20-2005 09:14 PM
Question regarding TAR
I have soem doubts regarding the tar backup utility.. Can anybody help me regarding this matter
1)Can we take encrypted backup in tar backup utility ....If not is there any freeware which I can take the backup
2)Can tar backup span accross tape
Thanks
Binu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2005 09:17 PM
09-20-2005 09:17 PM
Re: Question regarding TAR
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2005 09:18 PM
09-20-2005 09:18 PM
Re: Question regarding TAR
Yes, You can use crypt command and pipe it to tar.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2005 11:39 PM
09-20-2005 11:39 PM
Re: Question regarding TAR
tar cvf - ./my_data | openssl enc -aes-128-cbc > /dev/rmt/0m
It prompts for a password, verifies it, and then completes the backup.
To restore from tape, the following command is performed:
openssl aes-128-cbc -d -in /dev/rmt/0m | tar xf -
It prompts for the password and continues the restore.
Hope this helps,
Nico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2005 12:21 AM
09-21-2005 12:21 AM
Re: Question regarding TAR
piping through encryption programs as in the posts above is basically possible, but:
Please keep in mind that tapes use streaming mode and if the encryption program is slower than the tape (I would expect this, because encryption is CPU extensive), then the tape have to rewind and start again which may be the cause of bad media and failed backups.
You don't have this problem if you save a backup to a block device (like a disk) before writing it to a tape (with dd).
best regards
Stefan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2005 12:22 AM
09-21-2005 12:22 AM
Re: Question regarding TAR
If you are reading into the description that tar is not really suitable for production backups, you're correct. tar is great for exchanging a few small files between machines, but only if the exchange is not critical. fbackup/frecover is much more reliable and much higher performance (but only available on HP-UX). A commercial backup program would be the next logical choice beyond the free tools on HP-UX.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2005 12:52 AM
09-21-2005 12:52 AM
Re: Question regarding TAR
1) you can encrypt , once the tar backup completed , with pipe.
ex: # tar -cvf file1.tar * ; crypt cript_key < file1.tar > file1.crypt.tar
2) Tar cannot span across tape. You can use fbackup for that. Tar can take max 2GB file size and latest tar with patch makes it to support 8GB of file size.
Check your tar version:
# what /usr/bin/tar
/usr/bin/tar:
tar.c $Date: 2003/05/19 02:55:16 $Revision: r11.11/6 PATCH_11.11 (PHCO_
28992)
$Revision: @(#) all CUP11.11_BL2003_0522_1 PATCH_11.11 PHCO_28992
Thu May 22 03:24:02 PDT 2003 $
This Will support max 8GB file size.
----------------------------------------
You can also get the latest tar from
http://hpux.cs.utah.edu , that also dosupports for large files.
Hope this will help you.
Cheers,
Raj.