snackpot.yml etc. - add borgmatic backup container

This commit is contained in:
Nick Stokoe
2023-04-04 11:52:08 +01:00
parent a6872077a9
commit 2d3d9217e8
8 changed files with 122 additions and 13 deletions

View File

@@ -16,7 +16,7 @@ location:
# is used, then add local repository paths in the systemd
# service file to the ReadWritePaths list.
repositories:
- /mnt/c/backup/nick
- /mnt/borg-repository
# - ssh://${BORG_REPO_USER}@${BORG_REPO_HOST}:${BORG_REPO_PORT}/./${BORG_ARCHIVE}
# Working directory for the "borg create" command. Tildes are
@@ -103,6 +103,7 @@ location:
- '*#'
- '.cache'
- 'cache'
- 'files_trashbin'
# Read exclude patterns from one or more separate named files,
# one pattern per line. See the output of "borg help patterns"
@@ -451,18 +452,20 @@ hooks:
# https://www.postgresql.org/docs/current/app-pgdump.html and
# https://www.postgresql.org/docs/current/libpq-ssl.html for
# details.
# postgresql_databases:
postgresql_databases:
# Database name (required if using this hook). Or
# "all" to dump all databases on the host. Note
# that using this database hook implicitly enables
# both read_special and one_file_system (see
# above) to support dump and restore streaming.
# - name: users
- name: ${POSTGRES_DB}
# Database hostname to connect to. Defaults to
# connecting via local Unix socket.
# hostname: database.example.org
hostname: ${POSTGRES_HOST}
# Port to connect to. Defaults to 5432.
# port: 5433
@@ -471,14 +474,16 @@ hooks:
# You probably want to specify the "postgres"
# superuser here when the database name is "all".
# username: dbuser
username: ${POSTGRES_USER}
# Password with which to connect to the database.
# Omitting a password will only work if PostgreSQL
# is configured to trust the configured username
# without a password or you create a ~/.pgpass
# file.
# password: trustsome1
password: ${POSTGRES_PASSWORD}
# Database dump output format. One of "plain",
# "custom", "directory", or "tar". Defaults to
# "custom" (unlike raw pg_dump). See pg_dump
@@ -518,30 +523,30 @@ hooks:
# mysqldump/mysql commands (from either MySQL or MariaDB). See
# https://dev.mysql.com/doc/refman/8.0/en/mysqldump.html or
# https://mariadb.com/kb/en/library/mysqldump/ for details.
mysql_databases:
# mysql_databases:
# Database name (required if using this hook). Or
# "all" to dump all databases on the host. Note
# that using this database hook implicitly enables
# both read_special and one_file_system (see
# above) to support dump and restore streaming.
- name: ${POSTGRES_DB}
# - name: ${POSTGRES_DB}
# Database hostname to connect to. Defaults to
# connecting via local Unix socket.
hostname: ${POSTGRES_HOST}
# hostname: ${POSTGRES_HOST}
# Port to connect to. Defaults to 3306.
# port: 3307
# Username with which to connect to the database.
# Defaults to the username of the current user.
username: ${POSTGRES_USER}
# username: ${POSTGRES_USER}
# Password with which to connect to the database.
# Omitting a password will only work if MySQL is
# configured to trust the configured username
# without a password.
password: ${POSTGRES_PASSWORD}
# password: ${POSTGRES_PASSWORD}
# Additional mysql options to pass directly to
# the mysql command that lists available

View File

@@ -0,0 +1 @@
MAIL_PASSWORD={{ smtp_password }}