- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Linux to Solaris copying
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
05-26-2004 10:05 PM
05-26-2004 10:05 PM
I am not getting the proper syntax of the command. Basically I want to copy a file system from Solaris to Linux. Example:/oracle. The rsh from solaris to linux is working fine for root. I am using the command
#tar cvf - /oracle ; rsh 10.24.200.108 ( cd /oracle - tar xvf )
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 10:13 PM
05-26-2004 10:13 PM
Re: Linux to Solaris copying
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 10:16 PM
05-26-2004 10:16 PM
Re: Linux to Solaris copying
tar cvf - /oracle| rsh 10.24.200.108 "tar -C /oracle -xvf -"
it works on Tru64 too. Don't know on solaris.
Anyway gnu-tar (aka gtar) is able to rsh automatically while tarring (ex
tar cf - solarishost:/oracle |tar -C /tgt/dir/ -tvf -
look@man
peace,r
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 10:44 PM
05-26-2004 10:44 PM
Re: Linux to Solaris copying
Thanks for your reply.
If I run the below command on solaris
[tar cvf - /oracle | rsh 10.24.200.108 (cd /oracle && tar xvf -)] i am getting the following error...
"syntax error: `(' unexpected"
But the Second command works with a little modification as below..
[tar cvf - /oracle | rsh 10.24.200.108 "tar -C / -xvf -"].
With your original syntax it creates another folder by name oracle under /oracle and copies the data. Thanks for the inputs. Will rate it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 10:52 PM
05-26-2004 10:52 PM
SolutionCheck on man about using correctly the -C optins and test it untill you're really sure about its work.
Remember also that options work differently between different OS'es so always check man.
to make the parenthesis work enclose'em in ""
so
tar cvf - ./dir|rsh host "(cd /path/to1 && tar tvf -)"
should me the more platform-independent cmd
Peace, r.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 11:53 PM
05-26-2004 11:53 PM