Пример #1
0
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)
Пример #2
0
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')
Пример #3
0
def rebuild():
    """Rebuild the application using buildout."""
    utils.run_buildout(config=mls_config())
    utils.supervisorctl(command='restart', service='application')
Пример #4
0
def snapshot_backup():
    """Perform a snapshot backup."""
    zodb.backup(mls_config())
Пример #5
0
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')
Пример #6
0
def upload_data():
    """Upload the database files to the server."""
    zodb.upload_data(mls_config())
    zodb_ctl('restart')
Пример #7
0
def download_blobs():
    """Download blob part of Zope's data from the server."""
    zodb.download_blobs(mls_config())
Пример #8
0
def download_zodb():
    """Download ZODB part of Zope's data from the server."""
    zodb.download_zodb(mls_config())
Пример #9
0
def download_data():
    """Download the database files from the server."""
    zodb.download_data(mls_config())