LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices


Reply
  Search this Thread
Old 07-05-2016, 09:34 AM   #1
Cerephim
Member
 
Registered: Mar 2005
Location: Dayton, Ohio
Distribution: CentOS
Posts: 49

Rep: Reputation: 0
Transfer files between AIX boxes via named pipe


Hi.
I am trying to do a refresh of an environment from "server A" (source) to "server B" (target). Server B has very little room, otherwise I'd tar up the files and move the tarball over.

I'd like to copy files from A to B, replacing the current files on B with the up to date files on A via named pipe. I did something like this a good ten years ago, but I've forgotten any of the details.

Any ideas?

Thank you in advance!
 
Old 07-05-2016, 09:42 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Cerephim View Post
Hi.
I am trying to do a refresh of an environment from "server A" (source) to "server B" (target). Server B has very little room, otherwise I'd tar up the files and move the tarball over.

I'd like to copy files from A to B, replacing the current files on B with the up to date files on A via named pipe. I did something like this a good ten years ago, but I've forgotten any of the details.
Rsync is the way to go here. While this is a Linux utility, it is supported on AIX:

http://www.ibm.com/developerworks/ai...y/au-filesync/
http://www.ibm.com/developerworks/ai...u-rsyncfamily/
 
1 members found this post helpful.
Old 07-06-2016, 09:40 AM   #3
cliffordw
Member
 
Registered: Jan 2012
Location: South Africa
Posts: 509

Rep: Reputation: 203Reputation: 203Reputation: 203
Hi,

I second the rsync suggestion. You can find AIX binaries for it at https://www-03.ibm.com/systems/power...box/alpha.html or http://www.perzl.org/aix/index.php?n=Main.Rsync.
 
Old 07-10-2016, 12:09 PM   #4
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,863
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
With nameless pipe:
Code:
tohost# cd /topath
tohosr# ssh someuser@fromhost 'cd /frompath; tar czf - somedir' | tar xzvf -
Edit: If you have AIX!tar instead of GNU!tar, you might have to leave out the 'z'

Last edited by NevemTeve; 07-10-2016 at 01:24 PM.
 
Old 07-17-2016, 10:02 AM   #5
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Quote:
Originally Posted by Cerephim View Post
Hi.
I am trying to do a refresh of an environment from "server A" (source) to "server B" (target). Server B has very little room, otherwise I'd tar up the files and move the tarball over.

I'd like to copy files from A to B, replacing the current files on B with the up to date files on A via named pipe. I did something like this a good ten years ago, but I've forgotten any of the details.

Any ideas?

Thank you in advance!
Technically pipes are only internal structures to a single system. A pipe cannot be used to provide a network connection to another system. For that you have to use something else to provide the network transfer - NFS mounts, ssh tunnels (scp or ssh), rsync (client and server), ftp... (and some ftp servers can create a tar file, pass the tar data across the net for storage, though I don't remember any that allowed tar on both sides).

A named pipe is a FIFO file - it has a file name reference, but that just allows independent connection to the pipe.

A named socket is closer - but it is still a structure for one system, and does not provide network transfers. A named socket is a generalized merger between a socket (two-way communication rather than a one way pipe) and a FIFO file.

Last edited by jpollard; 07-17-2016 at 10:06 AM.
 
Old 08-29-2016, 02:36 PM   #6
Michael AM
Member
 
Registered: May 2006
Distribution: AIX 5.3, AIX 6.1, AIX 7.1
Posts: 123

Rep: Reputation: 33
Quote:
Originally Posted by cliffordw View Post
Hi,

I second the rsync suggestion. You can find AIX binaries for it at https://www-03.ibm.com/systems/power...box/alpha.html or http://www.perzl.org/aix/index.php?n=Main.Rsync.
I would like to say I also maintain a repository for AIX Tools, but as I do not wish to break any 'posting rules' - I will not post the URL here. Instead I'll only mention I package my tools in installp format, rather than RPM - and do my best to be sure they can co-exist with what you have already - AND - never create a situation that you cannot uninstall - as a few of the RPM package scripts do, as well as a need for a second runtime environment to support the gcc compiler dependencies (i.e., I build using the IBM vac compiler).

And thanks for the reminder - I built rsync last March - and forgot about it. But I'll have it accessible in about 10 minutes.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What is a named pipe ronzoid Linux - General 1 01-18-2006 04:30 PM
unlinking named pipe sahel Programming 1 01-12-2006 04:45 AM
unlinking named pipe sahel Programming 1 01-09-2006 10:36 PM
named pipe sahel Programming 1 01-09-2006 08:29 AM
Transphering files over a remote named pipe breik Linux - Networking 1 10-02-2005 01:10 PM

LinuxQuestions.org > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 11:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration