I'm looking for a sample script (API) to connect from an external panel (imscp) to myVesta and import (create) users, websites, email, ftp, databes I would try to adapt it accordingly.
The web files and emails themselves can be rsynced if the accounts have been previously created through the API.