paramiko is e Python module for ssh. You could probably piece together an ssh sync without too much trouble.