def update(): """Update the client packages.""" utils.supervisorctl(command='stop', service='application') utils.backup_dev_packages(config=mls_config()) utils.run_buildout(config=mls_config()) utils.supervisorctl(command='start', service='application') sleep(15)
def update_support_client(): """Update the maintenance client packages.""" utils.backup_dev_packages(config=mls_config(), folder='~/maintenance') utils.run_buildout(config=mls_config(), folder='~/maintenance')
def rebuild(): """Rebuild the application using buildout.""" utils.run_buildout(config=mls_config()) utils.supervisorctl(command='restart', service='application')
def snapshot_backup(): """Perform a snapshot backup.""" zodb.backup(mls_config())
def upload_blob(start_when_done=True): """Upload blob part of Zope's data to the server.""" zodb.upload_blob(mls_config()) zodb_ctl('restart')
def upload_data(): """Upload the database files to the server.""" zodb.upload_data(mls_config()) zodb_ctl('restart')
def download_blobs(): """Download blob part of Zope's data from the server.""" zodb.download_blobs(mls_config())
def download_zodb(): """Download ZODB part of Zope's data from the server.""" zodb.download_zodb(mls_config())
def download_data(): """Download the database files from the server.""" zodb.download_data(mls_config())