- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- remote tar command
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
03-16-2005 04:41 PM
03-16-2005 04:41 PM
remote tar command
I have tried backing up files from a HP's Box to a sun's box tapedrive using tar command as below.. but it give error..
# tar -cvf
tar: usage tar [-]{txruc}[eONvVwAfblhm{op}][0-7[lmh]] [tapefile] [blocksize] file1 file2...
0+0 records in
0+0 records out
MaY iKnow wat is wrong? thanks
cheers
Henry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2005 04:47 PM
03-16-2005 04:47 PM
Re: remote tar command
remesh hostname "tar cvf
You might want to consider openssh/secureshell, which can get this job done without risking network and system security.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2005 04:52 PM
03-16-2005 04:52 PM
Re: remote tar command
should be
# tar -cvf tarfile.tar file1 file2...
This should printout all the filenames it is archieving
(as verbose option is used).
I'm not sure why are you "pipe"'ing tar output to
remsh?
- Biswajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2005 05:09 PM
03-16-2005 05:09 PM
Re: remote tar command
what I intend to do is to copy data from a HPUX box to a remote tape drive that is mounted on a Sun 5.1 system... Is this possible?
Can I make the backup incremental?..the size of the source data is 40Gb... thanks!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2005 01:42 AM
03-17-2005 01:42 AM
Re: remote tar command
A) First Question (from last post):
cd /localdir
tar cvf - . | remsh sunbox "cd /targetdir;tar xvf - "
B) Incremental question...
If you mean to "refresh only the files that change every day?" You can use "rsync" through an ssh pipe, and this would work very nicely for you.
Would look something like (this is actually the command for Linux - assuming that HPUX one would be similar)
rsync -avze ssh --delete /sourcedir/ sunbox:/targetdir/
notes:
*The --delete flag is optional
*The trailing "/" are important!
*the "z" is for inline compression (optional)
You can get rysnc at:
http://hpux.cs.utah.edu/hppd/hpux/Networking/Admin/rsync-2.6.3/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2005 01:48 AM
03-17-2005 01:48 AM
Re: remote tar command
/sbin/mknod /tmp/stuffithere p
echo "+ +" >/.rhosts
cd directory to backup
tar -cvf /tmp/stuffithere .
ON SUN box as ROOT:
# rsh HPhost dd if=/tmp/stuffithere | dd of=/dev/rmt/0mn
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2005 02:32 AM
03-17-2005 02:32 AM
Re: remote tar command
tar -zcvf - /usr/local/bin/tar | ssh remote_host "dd of=/dev/rmt/0m"
If not just use rsh instead.
tar -zcvf - /usr/local/bin/tar | rsh remote_host "dd of=/dev/rmt/0m"
For rsh the source system must be known in the .rhosts file of your sun system.
Roland
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2005 02:35 AM
03-17-2005 02:35 AM
Re: remote tar command
# tar -cvf -
Roland
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2005 09:49 PM
03-17-2005 09:49 PM
Re: remote tar command
where files is the files you need to backup,
host is the remote host and the block size is 20(20*512b) on local(for tar) as well as the remote(for dd) systems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2005 10:23 AM
03-18-2005 10:23 AM
Re: remote tar command
Local:
# (cd $SRC; tar cf - . ) | (cd $DST; tar xf - )
Remote:
# (cd $SRC; tar cf - . ) | remsh $HOST "(cd $DST; tar xf - )"
# (cd $SRC; tar zcf - . ) | remsh $HOST "(cd $DST; tar zxf - )"
# (cd $SRC; tar cf - . ) | compress | \
remsh $HOST "uncompress | (cd $DST; tar xf - )"
# (cd $SRC; tar cf - . ) | gzip -c | \
remsh $HOST "gzip -cd | (cd $DST; tar xf - )"
Drawbacks:
- in HPUX doesn't support largefile. (use GNU tar to support largefiles)
- no "-xdev" option (like find) to restrict file to one filessytem (GNU tar propose this feature, switch -l)
I upload some more notes comparing several methods of local and remote data copying (tar, cpio, dumps, rsync,...) under several OSes (manly HP-UX) with pros and contras. [sorry, it's mainly in spanish, but i think that anyone can at least understand the commands]
Regards,
Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2005 03:10 PM
03-21-2005 03:10 PM
Re: remote tar command
with the following command how do I determine the size of the blocksize used
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2005 04:17 PM
03-21-2005 04:17 PM
Re: remote tar command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2005 08:28 PM
03-21-2005 08:28 PM
Re: remote tar command
Tar alone cant do it...you need to do several pipes to do it and during restoration you will also do the same...
why not use fbackup instead.. just setup the rhost from remote host then its done... just use frecover to restore it to HP systems later.
if you intend to restore it to a SUN box... just nfs mount your SUN Fs to HP server then do a frecover...
Hope these helps.
Jasper