mirror of
https://github.com/rustic-rs/rustic.git
synced 2025-10-26 11:18:51 +00:00
Consistently uses singular and plural names for options in config and CLI BREAKING CHANGE: This requires to adapt CLI calls and config keys. Affected options: - `glob` -> `globs` in config profile - `iglob` -> `iglobs` in config profile - `glob`-file -> `glob-files` in config profile - `iglob-file` -> `iglob-files` in config profile - `custom-ignore-file` -> `custom-ignore-files` in config profile - `tag`-> `tags` in config profile - `keep-tags` -> now only array - `keep-ids` -> now only array - `use-profile`-> `use-profiles` in config profile - `backup.sources` -> `backup.snapshots` in config profile - `filter-host` -> `filter-hosts` in config profile - `filter-label` -> `filter-labels` in config profile --------- Co-authored-by: simonsan <14062932+simonsan@users.noreply.github.com>
32 lines
662 B
TOML
32 lines
662 B
TOML
# rustic config file to backup /home, /etc and /root to a local repository
|
|
#
|
|
# backup usage: "rustic -P local backup
|
|
# cleanup: "rustic -P local forget --prune
|
|
#
|
|
[repository]
|
|
repository = "/backup/rustic"
|
|
password-file = "/root/key-rustic"
|
|
no-cache = true # no cache needed for local repository
|
|
|
|
[forget]
|
|
keep-hourly = 20
|
|
keep-daily = 14
|
|
keep-weekly = 8
|
|
keep-monthly = 24
|
|
keep-yearly = 10
|
|
|
|
[backup]
|
|
exclude-if-present = [".nobackup", "CACHEDIR.TAG"]
|
|
glob-files = ["/root/rustic-local.glob"]
|
|
one-file-system = true
|
|
|
|
[[backup.snapshots]]
|
|
sources = ["/home"]
|
|
git-ignore = true
|
|
|
|
[[backup.snapshots]]
|
|
sources = ["/etc"]
|
|
|
|
[[backup.snapshots]]
|
|
sources = ["/root"]
|