Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Docker for Drupal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Composer
plugin
Docker for Drupal
Commits
79d845e4
Commit
79d845e4
authored
1 year ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
#66
Update borgmatic config
parent
902b16e8
No related branches found
Branches containing commit
Tags
v3.7.40
Tags containing commit
1 merge request
!80
Merging develop into main
Pipeline
#1152584
passed
1 year ago
Stage: release
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/backup/config.yaml.twig
+47
-50
47 additions, 50 deletions
templates/backup/config.yaml.twig
with
47 additions
and
50 deletions
templates/backup/config.yaml.twig
+
47
−
50
View file @
79d845e4
location
:
source_directories
:
source_directories:
- /mnt/source
- /mnt/source
repositories:
repositor
ies:
- path: /mnt/borg-
repositor
y
- /mnt/borg-repository
label: local
{%
if
backup.remoterepo
|
default
(
0
)
%}
{%
if
backup.remoterepo
|
default
(
0
)
%}
-
{{
backup.remoterepo
}}
- path:
{{
backup.remoterepo
}}
label: remote
{%
endif
%}
{%
endif
%}
one_file_system: true
one_file_system: true
exclude_patterns:
exclude_patterns:
- '*.log'
- '*.log'
- '*.pyc'
- '*.pyc'
- '*/.git'
- '*/.git'
- '*/.svn'
- '*/.svn'
- '*/vendor/*'
- '*/vendor/*'
- '*/node_modules/*'
- '*/node_modules/*'
exclude_caches: true
exclude_caches: true
exclude_if_present: '.nobackup'
exclude_if_present:
- '.nobackup'
storage:
# Passphase is set in varibable $BORG_PASSPHRASE
# Passphase is set in varibable $BORG_PASSPHRASE
# encryption_passphrase: "DonNotMissToChangeYourPassphrase"
# encryption_passphrase: "DonNotMissToChangeYourPassphrase"
compression: lz4
compression: lz4
archive_name_format: 'backup-{now}'
archive_name_format: 'backup-{now}'
retries: 3
retries: 3
retry_wait: 300
retry_wait: 300
retention:
keep_hourly:
{{
backup.retention.hourly
}}
keep_hourly:
{{
backup.retention.hourly
}}
keep_daily:
{{
backup.retention.daily
}}
keep_daily:
{{
backup.retention.daily
}}
keep_weekly:
{{
backup.retention.weekly
}}
keep_weekly:
{{
backup.retention.weekly
}}
keep_monthly:
{{
backup.retention.monthly
}}
keep_monthly:
{{
backup.retention.monthly
}}
keep_yearly:
{{
backup.retention.yearly
}}
keep_yearly:
{{
backup.retention.yearly
}}
prefix: 'backup-'
prefix: 'backup-'
consistency:
checks:
checks:
- name: repository
- repository
- name: archives
- archives
check_last: 3
check_last: 3
prefix: 'backup-'
hooks:
mysql_databases:
mysql_databases:
- name: drupal
- name: drupal
hostname: mariadb
hostname: mariadb
port: 3306
port: 3306
username: drupal
username: drupal
password: drupal
password: drupal
options: '--skip-comments --no-tablespaces'
options: '--skip-comments --no-tablespaces'
before_backup:
before_backup:
- echo "`date` - Starting backup"
- echo "`date` - Starting backup"
after_backup:
after_backup:
- echo "`date` - Finished backup"
- echo "`date` - Finished backup"
{%
if
alerta
is
defined
%}
{%
if
alerta
is
defined
%}
on_error:
on_error:
- echo -n '{"service":["https://www.borgbase.com"],"resource":"
{{
HOST_NAME
|
default
(
'unknown'
)
}}
","event":"Borg {configuration_filename}","value":"{repository}","text":"Borg {configuration_filename}","rawData":"{output}"}' | nc -u -w1 alerta
{{
alerta.proxy_port
|
default
(
20002
)
}}
- echo -n '{"service":["https://www.borgbase.com"],"resource":"
{{
HOST_NAME
|
default
(
'unknown'
)
}}
","event":"Borg {configuration_filename}","value":"{repository}","text":"Borg {configuration_filename}","rawData":"{output}"}' | nc -u -w1 alerta
{{
alerta.proxy_port
|
default
(
20002
)
}}
{%
endif
%}
{%
endif
%}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment