Prechádzať zdrojové kódy

Add configuration examples for PostgreSQL and MySQL

Emmanuel Bouthenot 1 rok pred
rodič
commit
aac231140c
2 zmenil súbory, kde vykonal 50 pridanie a 0 odobranie
  1. 24 0
      examples/mysql.conf
  2. 26 0
      examples/postgresql.conf

+ 24 - 0
examples/mysql.conf

@@ -0,0 +1,24 @@
+
+# DB engine
+DBENGINE="mysql"
+
+# Backup directory
+BACKUPDIR="/var/lib/autodbbackup/${DBENGINE}"
+
+# Include CREATE DATABASE in backups?
+CREATE_DATABASE="no"
+
+# Which day do you want weekly backups? (1 to 7 where 1 is Monday)
+# When set to 0, weekly backups are disabled
+DOWEEKLY=0
+
+# Which day do you want monthly backups?
+# When set to 0, monthly backups are disabled
+DOMONTHLY=0
+
+# Backup retention count for daily backups, older backups are removed.
+BRDAILY=7
+
+# Compression tool
+COMP="zstd"
+

+ 26 - 0
examples/postgresql.conf

@@ -0,0 +1,26 @@
+
+# DB engine
+DBENGINE="postgresql"
+
+# Substitute user to run dump commands
+SU_USERNAME="postgres"
+
+# Backup directory
+BACKUPDIR="/var/lib/autodbbackup/${DBENGINE}"
+
+# Include CREATE DATABASE in backups?
+CREATE_DATABASE="no"
+
+# Which day do you want weekly backups? (1 to 7 where 1 is Monday)
+# When set to 0, weekly backups are disabled
+DOWEEKLY=0
+
+# Which day do you want monthly backups?
+# When set to 0, monthly backups are disabled
+DOMONTHLY=0
+
+# Backup retention count for daily backups, older backups are removed.
+BRDAILY=7
+
+# Compression tool
+COMP="zstd"