Random TIPS
Automate transfers between two servers with sftp?
Create one file and then use that as input for the sftp command:
test01@ # vi commands_sftp.txt
cd uploads
put *.gz
exit
Connect to the remote machine and transfer the required file:
# sftp test01@remote_server < comandos_sftp.txt