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-12-2002 06:59 PM
03-12-2002 06:59 PM
Hi All,
There are 2 machines, on A server I have a directory /usr/a/b/c, there
are many exe files in it.
now I want to tar those files
into B server /opt, I know
rcp can do this, but failed.
Any idea?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2002 07:23 PM
03-12-2002 07:23 PM
SolutionOn A
====
# cd /usr/a/b/c
# tar cvf /tmp/data.tar *
==> Create a tar ball (data.tar) and put it in /tmp. Make sure /tmp got enough space.
# cd /tmp
==> Now ftp the tar ball to server B and say you want to put it in /tmp in server B.
On B
====
1) # cd /opt
2) # mkdir dirA
3) # cd dirA
4) # tar xvf /tmp/data.tar
==> All the files under /usr/a/b/c from server A will be placed in /opt/dirA in server B.
==> If you don't want the "dirA" just ignore step 2 & 3
Hope this is what you want.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2002 07:27 PM
03-12-2002 07:27 PM
Re: tar
hi,
on A
cd /opt/a/b/c
tar cvf /dev/rmt/0m *
On B
cd /opt
tar xvf /dev/rmt/0m
or u can make a tar archive file of all the files and ftp it to B and untar
Vijeesh CTK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2002 07:30 PM
03-12-2002 07:30 PM
Re: tar
On A
====
# cd /usr/a/b/c
# (find . -xdev|cpio -coax)|remsh B "cd /opt;cpio -icdmuxla"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2002 07:34 PM
03-12-2002 07:34 PM
Re: tar
Sometimes setting remote hosts can be a be
in the bonnet of security.... There are
occassions where a tape can be very useful.
You could also use another filesystem should have sufficient space. So instead of using a tape device you substitute a file name like /tmp/tar.out and then transfer the file using ftp.
On Server A
# cd /usr
# tar cvf /dev/rmt/0m ./a ./b ./c
or
# tar cvf /tmp/tar.out ./a ./b ./c
Move the tape to server B
# cd /opt
# tar xvf /dev/rmt/0m
or
# tar xvf /tmptar.out
There are 20 possible ways of doing this task, most of them involve setting up remote host access other than ftp.
HTH
-Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2002 07:42 PM
03-12-2002 07:42 PM