Exemplo n.º 1
0
def backup_new():
    from backup import perform_backup, get_backup_config

    # If backups are disabled, don't perform the backup
    config = get_backup_config(env)
    if config["target"] == "off":
        return "Backups are disabled in this machine. Nothing was done."

    msg = perform_backup(request.form.get('full', False) == 'true', True)
    return "OK" if msg is None else msg
Exemplo n.º 2
0
def backup_get_custom():
	from backup import get_backup_config
	return json_response(get_backup_config(env, for_ui=True))
Exemplo n.º 3
0
def backup_get_custom():
	from backup import get_backup_config
	return json_response(get_backup_config(env, for_ui=True))