At low security, this task is pretty straighforward, especially if you've ever scheduled a cron job or had to join commands at the shell. Send in an ip and follow it up with either of the compound command operators we're familiar with, '&&' or ';'. Success.
Another one filed under "can't remember, so I'll write down an example"
# Below copies local_file to remote_machine in remote_user's home directory, should be able to restart at last checkpoint if connection drops
bash-3.2$ rsync -avvz -e ssh /path/to/local_file remote_user@remote_machine:~/