- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Tar backup
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-09-2007 06:57 PM
01-09-2007 06:57 PM
Tar backup
I want to take a backup of a particular file system on an HP-UX machine using tar.
Now instead of a tape I want this to be backed up in a disk.
Kindly advice if this is possible using tar. If not what other backup commands can be used to achieve the same.
Kindly note that the disk I am talking is a RAW disk and does not contain any file system.
It is just an ordinary PV unassigned to any VG.
Thanks and Regards,
Ajit Kumar.R
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2007 07:06 PM
01-09-2007 07:06 PM
Re: Tar backup
Just
# tar cvf /dev/dsk/cXtYdZ "your-files"
rgds
HGH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2007 07:16 PM
01-09-2007 07:16 PM
Re: Tar backup
if your input device is RAW,I don't think tar will work, as it is file-system based.
You may be better of with something like:
dd -if=
Please also note from "man dd":
" If if or of refers to a raw disk, bs should always be a multiple of
the sector size of the disk. By default, bs is 512 bytes. If the
sector size of the disk is different from 512 bytes, bs should be
specified using a multiple of sector size. The character special
(raw) device file should always be used for devices."
Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2007 07:19 PM
01-09-2007 07:19 PM
Re: Tar backup
I hope can help this ff command using cpio.
Duplicating cpio(1) tapes
Copy contents of cpio(1) tape to disk:
# dd if=/dev/rmt/ of=/tmp/cpio.contents bs=5k
Copy disk file to new tape:
# dd if=/tmp/cpio.contents of=/dev/rmt/ bs=5k
Verify new tape is readable by cpio(1):
# cpio -icvBt < /dev/rmt
fbackup(1M) (or SAM) tapes
Note: Unfortunately, fbackup(1M) (and SAM) creates backup
volumes with a format that makes duplication of volumes by dd(1)
impossible.
See fbackup(1M) manpage for more information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2007 10:20 PM
01-09-2007 10:20 PM
Re: Tar backup
dd if=/data of=/dev/dsk/c1t5d0 (eaxmple).
dd will be the option for raw device usage.
Regds
B.Ganesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2007 11:10 PM
01-09-2007 11:10 PM
Re: Tar backup
I think 'dd' is a very good command for what you want.
So you get a identical duplicate of your disk.
But Peter's command is maybe a little bit confusing - note: '-if' is your source and '-of' is your target. You can use the raw device for both disks.
HTH
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2007 12:47 AM
01-10-2007 12:47 AM
Re: Tar backup
what type of application are your running?
Make sure that you have stopped the application or database system before doing the backup of the raw device...
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2007 12:57 AM
01-10-2007 12:57 AM
Re: Tar backup
and:
your target disk has to be as big as the source disk (or can be bigger).
V.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2007 01:39 AM
01-10-2007 01:39 AM
Re: Tar backup
Also you can monitor the dd process with iostat command , grepping the source and target disk name.
Cheers,
Raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2007 01:41 AM
01-10-2007 01:41 AM
Re: Tar backup
Also you can monitor the dd process with iostat command , grepping the source disk name , with keeping an eye on bps ( Kilobytes transferred per second.), from another session.
Cheers,
Raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2007 02:11 AM
01-10-2007 02:11 AM
Re: Tar backup
reading Ajit's request carefully, I see he wants to backup a FILESYSTEM to a disk device (instead of a tape device).
This is perfectly legal and can be done by tar, when the target (disk) device is NOT used as a filesystem or for anything other (swap, db,...).
root@hp2[209] lvcreate -n tape2 -l 512 vg01
root@hp2[210] cd /
root@hp2[211] tar cf /dev/vg01/tape2 etc
root@hp2[212] tar tvf /dev/vg01/tape2
r-xr-xr-x 2/2 0 Nov 29 18:04 2006 etc/
rw-r--r-- 0/3 426 Jul 29 18:31 2005 etc/fstab
rw-r--r-- 0/0 736 Jan 10 06:56 2007 etc/mnttab
...
Keep in mind, you must KNOW, that there is a tar output located at this device, though a check like this may help:
root@hp2[213] dd if=/dev/vg01/lvol2 of=/tmp/www bs=5k count=1
1+0 records in
1+0 records out
root@hp2[214] file /tmp/www
/tmp/www: tar file
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2007 08:09 PM
01-15-2007 08:09 PM
Re: Tar backup
can you please update this thread.
Could you please complete the thread by awarding points to helpful answers and summarising the solution for you.
This will help resolution of similar problems in the future.