Gil, Thanks for the correction. I was thinking if he was doing a one-time move he could mount a filesystem on the originating LPAR, do the pax command, dismount, and then mount again on the receiving LPAR. Cumbersome, but works for a one time move. If it is going to be an ongoing process then I'm sure Dave would desire a better solution. Bill
-----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Paul Gilmartin Sent: Monday, December 28, 2015 12:35 PM To: [email protected] Subject: Re: rsync anyone? On Mon, 28 Dec 2015 18:12:05 +0000, Skeldum, William wrote: >The pax command is a good choice because it can copy all files, directories, >and symbolic links in a directory using a single command without overlaying >any existing files. For example: >cd /Service/ZOS113/var >pax -rvwk -pe * /var > For rsync-like behavior, one often wants to overwrite older files and preserve newer. For this, "-u" may be a better choice than "-k". ... and your command moves files only within an LPAR. Across LPARs, you need something such as: ssh other-LPAR "pax -w bin" | # (Yes, the dreaded "ssh".) pax -rvu -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN The information contained in this electronic communication and any document attached hereto or transmitted herewith is confidential and intended for the exclusive use of the individual or entity named above. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that any examination, use, dissemination, distribution or copying of this communication or any part thereof is strictly prohibited. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy this communication. Thank you. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
