-
Notifications
You must be signed in to change notification settings - Fork 77
/
Copy pathrustic.toml
47 lines (40 loc) · 1.43 KB
/
rustic.toml
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
# Example rustic config file.
#
# This file should be placed in the user's local config dir (~/.config/rustic/)
# If you save it under NAME.toml, use "rustic -P NAME" to access this profile.
#
# Note that most options can be overwritten by the corresponding command line option.
# global options: These options are used for all commands.
[global]
log-level = "debug"
log-file = "/log/rustic.log"
# repository options: These options define which backend to use and which password to use.
[repository]
repository = "/tmp/rustic"
password = "mySecretPassword"
# snapshot-filter options: These options apply to all commands that use snapshot filters
[snapshot-filter]
filter-hosts = ["myhost"]
# backup options: These options are used for all sources when calling the backup command.
# They can be overwritten by source-specific options (see below) or command line options.
[backup]
git-ignore = true
# backup options can be given for specific sources. These options only apply
# when calling "rustic backup SOURCE".
#
# Note that if you call "rustic backup" without any source, all sources from this config
# file will be processed.
[[backup.snapshots]]
sources = ["/data/dir"]
[[backup.snapshots]]
sources = ["/home"]
globs = ["!/home/*/Downloads/*"]
# forget options
[forget]
filter-hosts = [
"forgethost",
] # <- this overwrites the snapshot-filter option defined above
keep-tags = ["mytag"]
keep-within-daily = "7 days"
keep-monthly = 5
keep-yearly = 2