From a86ffc08f9f179f9b480ecfc0112fbf6e463bf34 Mon Sep 17 00:00:00 2001 From: Carlos Galindo Date: Mon, 7 Oct 2019 12:00:59 +0200 Subject: [PATCH] added sample config --- conf/after.sh-sample | 6 ++++++ conf/before.sh-sample | 6 ++++++ conf/conf-db-sample | 23 +++++++++++++++++++++++ conf/conf-dir-sample | 23 +++++++++++++++++++++++ 4 files changed, 58 insertions(+) create mode 100644 conf/after.sh-sample create mode 100644 conf/before.sh-sample create mode 100644 conf/conf-db-sample create mode 100644 conf/conf-dir-sample diff --git a/conf/after.sh-sample b/conf/after.sh-sample new file mode 100644 index 0000000..86be954 --- /dev/null +++ b/conf/after.sh-sample @@ -0,0 +1,6 @@ +#!/bin/bash + +# This file will run after any backup starts. +# Any command can be placed here +# To be run, the file must be renamed to after.sh +# and be made executable diff --git a/conf/before.sh-sample b/conf/before.sh-sample new file mode 100644 index 0000000..2da5680 --- /dev/null +++ b/conf/before.sh-sample @@ -0,0 +1,6 @@ +#!/bin/bash + +# This file will run before any backup starts. +# Any command can be placed here +# To be run, the file must be renamed to before.sh +# and be made executable diff --git a/conf/conf-db-sample b/conf/conf-db-sample new file mode 100644 index 0000000..750c713 --- /dev/null +++ b/conf/conf-db-sample @@ -0,0 +1,23 @@ +# Sample config file for a database backup +# To enable this backup, softlink or copy to ./db + +# Auxiliary variable declarations +baseDir="/var/lib/backup" + +# Name of the backup, used for the log +name="simple_wordpress" +# Service that must be stopped before the backup takes place +service="httpd" +# Directory in which a backup will be created (inside a directory with the +# current date-time), along with its checksum. +outDir="${baseDir}/${name}" +# Database settings: name, user (with read permissions) and password for said user +dbName="my_wordpress_user" +dbUser="my_wordpress_db" +dbPassword="my_secret_password" +# Maximum number of backups to keep. When the number is reached, the oldest +# will be deleted until the maximum is satisfied. 0 == infinity +maxBackups=30 + +# Auxiliary variable removal +unset baseDir diff --git a/conf/conf-dir-sample b/conf/conf-dir-sample new file mode 100644 index 0000000..e016643 --- /dev/null +++ b/conf/conf-dir-sample @@ -0,0 +1,23 @@ +# Sample config file for a directory backup +# To enable this backup, softlink or copy to ./dir + +# Auxiliary variable declarations +baseDir="/var/lib/backup" + +# Name of the backup, used for the log +name="simple_wordpress" +# Service that must be stopped before the backup takes place +service="httpd" +# Directory in which a backup will be created (inside a directory with the +# current date-time), along with its checksum. +outDir="${baseDir}/${name}" +# Directory or directories to back up. To use wildcards or shell expansions, +# use something like "$(ls /my/files/*.png)". Multiple directories may be +# specified, separated by spaces. Individual files may also be specified. +dir="/srv/http/my_wordpress /etc/httpd/conf/my_wordpress.conf" +# Maximum number of backups to keep. When the number is reached, the oldest +# will be deleted until the maximum is satisfied. 0 == infinity +maxBackups=10 + +# Auxiliary variable removal +unset baseDir