This repository has been archived by the owner on Jan 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbackup-controller.conf.yaml
154 lines (139 loc) · 4.19 KB
/
backup-controller.conf.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
#
# Bahub - File Repository API client configuration
# For documentation see: https://file-repository.readthedocs.io/en/latest/client/configuration-reference.html
#
# This is a reference configuration file that should contain all options.
#
# Maintainers: Please change with caution, this file is used in automated E2E tests
# Notice: To test this configuration you need to run `docker-compose up` in ./test/env/s3pb directory
#
accesses:
secured:
url: "${SERVER_URL}"
token: "${API_TOKEN}"
encryption:
strong:
private_key_path: "~/Projekty/riotkit/br-backup-maker/resources/test/gpg-key.asc"
public_key_path: ""
passphrase: "riotkit"
email: "test@riotkit.org"
transports:
local:
type: bahub.transports.sh
spec: {}
docker_mysql:
type: bahub.transports.docker
spec:
container: "s3pb_db_mysql_1"
docker_fs:
type: bahub.transports.docker
spec:
container: "nginx_bahub_test"
side_docker_fs:
type: bahub.transports.docker_sidecontainer
spec:
orig_container: "nginx_bahub_test"
temp_container_image: "alpine:3.12"
pull: false
kubernetes_pod_fs:
type: bahub.transports.kubernetes_sidepod
spec:
namespace: default
selector: "app=nginx"
image: "ghcr.io/riotkit-org/backup-maker-env:latest"
timeout: 300
scaleDown: true
# docker_postgres:
# type: bahub.transports.docker
# spec:
# container: "s3pb_db_postgres_1"
#
# docker_postgres_offline:
# type: bahub.transports.temporarydocker
# spec:
# orig_container: "s3pb_db_postgres_1"
# temp_container_image: "postgres:13.1"
# shell: /bin/bash
backups:
fs_kubernetes_pod:
meta:
type: bahub.adapters.filesystem
access: secured
encryption: strong
collection_id: "${TEST_COLLECTION_ID}"
transport: kubernetes_pod_fs
spec:
paths:
- /var/www
fs_docker:
meta:
type: bahub.adapters.filesystem
access: secured
encryption: strong
collection_id: "${TEST_COLLECTION_ID}"
transport: docker_fs
spec:
paths:
- /var/www
fs:
meta:
type: bahub.adapters.filesystem
access: secured
encryption: strong
collection_id: "${TEST_COLLECTION_ID}"
transport: local
spec:
paths:
- ./
# postgres_fs_cold_files_backup:
# meta:
# type: bahub.adapters.filesystem
# access: secured
# encryption: strong
# collection_id: "${TEST_COLLECTION_ID}"
# transport: docker_postgres_offline
# spec:
# paths:
# - /var/lib/postgresql
# db_mysql:
# meta:
# type: bahub.adapters.mysql
# access: secured
# encryption: strong
# collection_id: "${TEST_COLLECTION_ID}"
# transport: docker_mysql
# spec:
# host: "127.0.0.1"
# port: 3306
# user: "root"
# password: "root"
# db_postgres_dump_all_databases:
# meta:
# type: bahub.adapters.postgres_dump
# access: secured
# encryption: strong
# collection_id: "${TEST_COLLECTION_ID}"
# transport: docker_postgres
# spec:
# host: "127.0.0.1"
# port: 5432
# user: "bakunin"
# password: "communism-cannot-be-enforced"
#
# db_postgres_dump_single_database:
# meta:
# type: bahub.adapters.postgres_dump
# access: secured
# encryption: strong
# collection_id: "${TEST_COLLECTION_ID}"
# transport: docker_postgres
# spec:
# host: "127.0.0.1"
# port: 5432
# user: "bakunin"
# password: "communism-cannot-be-enforced"
# database: "riotkit"
#notifiers:
#mattermost:
# type: slack
# url: "http://localhost"