HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Using tar with remote shell
Operating System - HP-UX
1834485
Members
3146
Online
110067
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
10-24-2005 08:45 PM
10-24-2005 08:45 PM
I din't bring my unix powertools book ,
and I am trying to do something from head,
but seems my memory is degrading already :)
I am trying to tar a complete dir and subdir
structure with files and untar it at the other
end on an other server.
[root@oradb1:]/home/opera<>>> tar -cvf - . | remsh orasrv2 "tar -xvf /devnew/apps/opera"
a ./.cshrc 2 blocks
a ./.exrc 1 blocks
a ./.login 1 blocks
a ./.profile 4 blocks
a ./.dtprofile 8 blocks
a ./.kshrc 2 blocks
a ./.sh_history 8 blocks
tar: usage tar [-]{txruc}[eONvVwAfba ./report/bedarf.cerr 0 blocks
a ./report/ftp_on_050410.log 26 blocks
lhm{op}][0-7[lmh]] [tapefile] [blocksize] file1 file2...
[root@oradb1:]/home/opera<>>>
Anyone remember the correct syntax.
Thanks
and I am trying to do something from head,
but seems my memory is degrading already :)
I am trying to tar a complete dir and subdir
structure with files and untar it at the other
end on an other server.
[root@oradb1:]/home/opera<>>> tar -cvf - . | remsh orasrv2 "tar -xvf /devnew/apps/opera"
a ./.cshrc 2 blocks
a ./.exrc 1 blocks
a ./.login 1 blocks
a ./.profile 4 blocks
a ./.dtprofile 8 blocks
a ./.kshrc 2 blocks
a ./.sh_history 8 blocks
tar: usage tar [-]{txruc}[eONvVwAfba ./report/bedarf.cerr 0 blocks
a ./report/ftp_on_050410.log 26 blocks
lhm{op}][0-7[lmh]] [tapefile] [blocksize] file1 file2...
[root@oradb1:]/home/opera<>>>
Anyone remember the correct syntax.
Thanks
Look before you leap
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2005 08:50 PM
10-24-2005 08:50 PM
Re: Using tar with remote shell
Write a `tar' tape on a remote computer that owns a DAT/DDS drive.
cd /relative_path
tar cvf - . | remsh name -l user "cat - | dd of=/dev/rmt/0m bs=10k"
Restore a `tar' tape from a remote computer that owns a DAT/DDS drive.
cd /relative_path
remsh name -l user dd if=/dev/rmt/0m bs=10k | tar xvf -
cd /relative_path
tar cvf - . | remsh name -l user "cat - | dd of=/dev/rmt/0m bs=10k"
Restore a `tar' tape from a remote computer that owns a DAT/DDS drive.
cd /relative_path
remsh name -l user dd if=/dev/rmt/0m bs=10k | tar xvf -
There is no substitute to HARDWORK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2005 08:51 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2005 09:09 PM
10-24-2005 09:09 PM
Re: Using tar with remote shell
Thanks,
Look before you leap
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP