import py from py.__.test.rsession import rsync host = "snake.cs.uni-duesseldorf.de" directory = "public_html/x86_64_test" def _main(): print "* executing" exec open("autotest.py").read() in {} print "- done" print "* rsyncincg" gw = py.execnet.SshGateway(host) rs = rsync.RSync() rs.add_target(gw, directory) rs.send("html") print "- done" if __name__ == '__main__': _main()