Have you ever wanted to transfer some files from your computer to a computer on a different network. Your computer can't talk directly to that computer. So you'll have to first transfer the files to a relay computer that could see both network. Then transfer the files over to the destination computer and finally clean up all the files on the relay computer. That's a lot of of work if you have the repeat that process all the time.
This is where RelayTransfer.sh comes in handy. RelayTransfer.sh does the work for you. You just have to specify the files you want to transfer, the destination for the files, and the relay computer that will do the transfer. After specifying that, RelayTransfer.sh will do all the work. Because RelayTransfer.sh is written as a command-line Bourne shell script, it can be used in your own custom scripts. You can use it to automate your transfers.
RelayTransfer.sh takes advantage of the GetTempDirPath.ksh (GPL) Korn shell script, the GetTempPathName.ksh (GPL) Korn shell script, the TransferBroker.sh (GPL) Bourne shell script. These scripts are also available on this site. So to use the RelayTransfer.sh script, you will need to download these other scripts if you don't already have them.
RelayTransfer.sh is distributed as executable source code under the GNU General Public License. Please see the license agreement elsewhere on this site.
RelayTransfer.sh "[[email protected]]HOST:SRC" "[[email protected]]HOST:DEST" "[[email protected]]Relay Host"
Note that the relay host has to have automated password authentication set up for both source and destination hosts. That is because there is no way to prompt you to enter them from the relay host.
If you are seeing messages that looks like the example below, then you probably do not have automated password authentication set-up.
Permission denied (publickey,keyboard-interactive).
Once you have automated authentication set-up, you'll have to make sure that the source and destination host RSA key fingerprint are in the known_hosts file on the relay host. If you get the following error message, then it is likely that the RSA key fingerprint is missing.
Host key verification failed.
You can easily get the RSA key fingerprint in the known_hosts file by using ssh on the relay host to log into the source and destination hosts. Keep in mind that the fingerprint is different for IP address versus host name, even though they point to the same machine.
I have made a slight improvement to "RelayTransfer.sh". When it cleans up the temporary directory that it created, it check to see if it exists first. This fix only effect folks using NFS mounts to the same location, where the temporary directory is located. The new version is attached below.
Did your message disappear? Read the Forums FAQ.
TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.
Title: rsync errors
Spam Control | * indicates required field
Messages, files, and images copyright by respective owners.
26 Users Online
Copyright © 1996 - 2018. All Rights Reserved.