nixpkgs/nixos/modules/services/backup
Alvar Penning adafbeff4a nixos/restic: generalize cache configuration
The restic repository cache location defaults to ~/.cache/restic when
not overwritten either by the --cache-dir command line parameter or the
universal RESTIC_CACHE_DIR environment variable.

Currently, the --cache-dir variable is set to only some restic commands,
but, e.g., not to the unit's preStart command for the module's
initialize option. This results in two distinct cache locations, one at
~/.cache/restic for the initialize commands and one at the configured
--cache-dir location for the restic backup command.

By explicitly setting RESTIC_CACHE_DIR for the unit, only one cache at
the correct location will be used.

https://restic.readthedocs.io/en/v0.15.1/manual_rest.html#caching
2023-03-11 12:59:10 +01:00
..
automysqlbackup.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
bacula.nix treewide: use types.port in nixos modules 2022-11-10 09:30:00 +01:00
borgbackup.md docs: borg expects --rsh, not -rsh 2023-02-20 18:02:28 +01:00
borgbackup.nix nixos/manual: render module chapters with nixos-render-docs 2023-01-27 20:07:34 +01:00
borgmatic.nix nixos/borgmatic: Allow defining multiple configurations 2023-02-12 19:12:34 +01:00
btrbk.nix nixos/btrbk: fix ordering of subsections and refactor 2022-10-24 08:52:25 +08:00
duplicati.nix treewide: use types.port in nixos modules 2022-11-10 09:30:00 +01:00
duplicity.nix nixos/*: convert options with listings 2022-08-31 17:27:36 +02:00
mysql-backup.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
postgresql-backup.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
postgresql-wal-receiver.nix treewide: automatically md-convert option descriptions 2022-07-30 15:16:34 +02:00
restic-rest-server.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
restic.nix nixos/restic: generalize cache configuration 2023-03-11 12:59:10 +01:00
rsnapshot.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
sanoid.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
syncoid.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
tarsnap.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
tsm.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
zfs-replication.nix nixos/*: remove trailing period in mkEnableOptions 2023-02-08 15:23:34 +01:00
znapzend.nix nixos: fix typos 2022-12-17 19:31:14 -05:00
zrepl.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00