Implement remote backups with ssh and xbstream, test code on mac os x