com.anrisoftware.sscontrol.httpd.roundcube.ubuntu.UbuntuRoundcubeMysqlDatabaseBackup.groovy Maven / Gradle / Ivy
/*
* Copyright 2014-2015 Erwin Müller
*
* This file is part of sscontrol-httpd-roundcube.
*
* sscontrol-httpd-roundcube is free software: you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version.
*
* sscontrol-httpd-roundcube is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License
* for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with sscontrol-httpd-roundcube. If not, see .
*/
package com.anrisoftware.sscontrol.httpd.roundcube.ubuntu
import org.joda.time.Duration
import com.anrisoftware.propertiesutils.ContextProperties
import com.anrisoftware.resources.templates.api.TemplateResource
import com.anrisoftware.resources.templates.api.TemplatesFactory
import com.anrisoftware.sscontrol.httpd.backups.mysql.Mysql_5_DatabaseBackup
/**
* Roundcube MySQL database backup.
*
* @author Erwin Mueller, [email protected]
* @since 1.0
*/
abstract class UbuntuRoundcubeMysqlDatabaseBackup extends Mysql_5_DatabaseBackup {
/**
*
* - profile property {@code "mysqldump_command"}
*
*
* @see #getDefaultProperties()
*/
String getMysqldumpCommand() {
profileProperty "mysqldump_command", defaultProperties
}
/**
*
* - profile property {@code "gzip_command"}
*
*
* @see #getDefaultProperties()
*/
String getGzipCommand() {
profileProperty "gzip_command", defaultProperties
}
/**
*
* - profile property {@code "roundcube_backup_database_archive"}
*
*
* @see #getRoundcubeProperties()
*/
String getBackupDatabaseArchive() {
profileProperty "roundcube_backup_database_archive", roundcubeProperties
}
/**
*
* - profile property {@code "roundcube_backup_timeout"}
*
*
* @see #getRoundcubeProperties()
*/
Duration getBackupTimeout() {
profileDurationProperty "roundcube_backup_timeout", roundcubeProperties
}
/**
* Returns the Roundcube properties.
*
* @return the {@link ContextProperties} properties.
*/
abstract ContextProperties getRoundcubeProperties()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy