Skip to content

Commit 1c7145c

Browse files
authored
Update config.yaml
1 parent 99662d9 commit 1c7145c

File tree

1 file changed

+47
-30
lines changed

1 file changed

+47
-30
lines changed
Lines changed: 47 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
## Config for ${HOST_NAME}
1+
## Config for ${HOST_NAME}
22

33
source_directories:
4-
- /mnt/source/easyengine
5-
- /mnt/source/volumes
6-
- /mnt/source/borgmatic
7-
- /mnt/source/fail2ban
8-
- /mnt/source/crontab
4+
- /mnt/source/easyengine
5+
- /mnt/source/volumes
6+
- /mnt/source/borgmatic
7+
- /mnt/source/fail2ban
8+
- /mnt/source/crontab
99

1010
repositories:
11-
- path: ${BORGBASE_REPO_PATH}
12-
label: "${HOST_NAME} on BorgBase"
11+
- path: ${BORGBASE_REPO_PATH}
12+
label: "${HOST_NAME} on BorgBase"
1313

1414
exclude_patterns:
15-
- '*.pyc'
16-
- ~/*/.cache
15+
- '*.pyc'
16+
- ~/*/.cache
1717

1818
compression: auto,zstd
1919
archive_name_format: '${HOST_NAME}-{now:%Y-%m-%d-%H%M%S}'
@@ -26,29 +26,46 @@ keep_weekly: 20
2626
keep_monthly: 24
2727
keep_yearly: 10
2828

29+
read_special: true
30+
2931
checks:
30-
- name: disabled
32+
- name: repository
33+
frequency: 1 week
34+
- name: archives
35+
frequency: 1 month
3136

32-
check_last: 3
37+
check_last: 7
3338

3439
commands:
35-
- before: action
36-
when: [create]
37-
run:
38-
- echo "Before create!"
39-
- after: action
40-
when: [create]
41-
states: [finish]
42-
run:
43-
- echo "After successful create!"
44-
- after: error
45-
run:
46-
- echo "Something went wrong!"
40+
- before: action
41+
when: [create]
42+
run:
43+
- 'echo "Borgmatic: Starting backup for ${HOST_NAME}..."'
44+
- after: action
45+
when: [create]
46+
states: [finish]
47+
run:
48+
- 'echo "Borgmatic: Backup for ${HOST_NAME} completed successfully!"'
49+
50+
- before: action
51+
when: [check]
52+
run:
53+
- 'echo "Borgmatic: Starting consistency checks for ${HOST_NAME}..."'
54+
- after: action
55+
when: [check]
56+
states: [finish]
57+
run:
58+
- 'echo "Borgmatic: Consistency checks for ${HOST_NAME} completed successfully!"'
59+
60+
- after: error
61+
run:
62+
- 'echo "Borgmatic: An error occurred during an operation for ${HOST_NAME}. Please check logs."'
4763

4864
mariadb_databases:
49-
- name: all
50-
hostname: services_global-db_1
51-
username: root
52-
password: ${MYSQL_ROOT_PASSWORD}
53-
format: sql
54-
tls: false
65+
- name: all
66+
hostname: services_global-db_1
67+
username: root
68+
password: ${MYSQL_ROOT_PASSWORD}
69+
format: sql
70+
tls: false
71+
options: --compact

0 commit comments

Comments
 (0)