2021-01-15 13:28:12 +01:00
|
|
|
# This is an example config file for the backup tool.
|
|
|
|
|
|
|
|
# Here, you can set defaults which apply to all specs
|
|
|
|
defaults:
|
|
|
|
# This option applies to all categories
|
|
|
|
all:
|
|
|
|
notify:
|
|
|
|
title: "title"
|
|
|
|
events:
|
|
|
|
- 'random'
|
|
|
|
|
|
|
|
# These are category-specific & take precedence of the all group
|
|
|
|
volumes:
|
|
|
|
notify:
|
|
|
|
title: "volume"
|
|
|
|
directories:
|
|
|
|
|
|
|
|
# This is where we define the specs
|
|
|
|
specs:
|
|
|
|
# There are 3 categories: volumes, directories & containers
|
|
|
|
volumes:
|
|
|
|
# Each spec has a name, which can be used in the destination field
|
|
|
|
# e.g. in the default value
|
|
|
|
test-spec:
|
2021-01-15 21:47:09 +01:00
|
|
|
volume: 'media_nefarious-config'
|
|
|
|
destination: '/tmp/to'
|
2021-01-15 13:28:12 +01:00
|
|
|
limit: 7
|
|
|
|
|
|
|
|
containers:
|
2021-01-15 22:00:56 +01:00
|
|
|
gogs-db:
|
|
|
|
container: 'test_db_1'
|
|
|
|
destination: '/tmp/to'
|
|
|
|
limit: 7
|
|
|
|
command: 'pg_dump -U gogs gogs'
|
|
|
|
extension: 'sql'
|
|
|
|
|
2021-01-15 13:28:12 +01:00
|
|
|
directories:
|
2021-01-15 21:08:56 +01:00
|
|
|
test:
|
2021-01-16 09:36:23 +01:00
|
|
|
destination: "/tmp/to"
|
2021-01-15 21:08:56 +01:00
|
|
|
limit: 5
|
2021-01-16 09:36:23 +01:00
|
|
|
source: "/tmp/from"
|