about summary refs log tree commit diff
path: root/nixos/modules/services/backup
AgeCommit message (Collapse)AuthorFilesLines
2023-10-28Merge pull request #262084 from imlonghao/borgmatic/fix-262020Weijia Wang1-1/+1
borgmatic: fix deprecation warning check failed
2023-10-28borgmatic: fix deprecation warning check failedimlonghao1-1/+1
2023-10-27nixos/restic: remove s3CredentialsFile optionAlyssa Ross1-14/+1
This has been deprecated since 2021, so all users should have seen the warning and migrated by now.
2023-10-26Merge pull request #212087 from robryk/resticpathsPeder Bergebakken Sundt1-11/+14
nixos/backups/restic: handle cases when both dynamicFileFrom and paths are set
2023-10-23Merge pull request #246081 from therealr5/bacula-fixDomen Kožar1-20/+20
nixos/bacula: fix postgresql config and remove unneeded quotation marks
2023-10-20nixos: fix bad mkEnableOption descriptionsBjørn Forsman1-10/+10
Fix descriptions that don't account for (1) the "Whether to enable" prefix or (2) the automatically added trailing dot.
2023-10-10borgmatic: 1.7.15 -> 1.8.1imlonghao1-16/+41
2023-10-07nixos/borgbackup: add package optionamesgen1-4/+7
Co-authored-by: Lin Jian <me@linj.tech>
2023-09-29Merge pull request #250810 from asonix/btrbk-fix-btrfs-pathasymmetric1-2/+2
nixos/btrbk: fix btrfs path for passwordless execution
2023-09-28nixos/btrbk: fix btrfs path for passwordless executionasonix1-2/+2
2023-09-09Merge pull request #251062 from ajs124/restic-wrapper-scriptJanik1-2/+30
2023-09-07Merge pull request #249941 from FrancescoDeSimone/duplicati-service-fixWeijia Wang1-3/+4
nixos/duplicati: add package option
2023-08-28nixos/restic: add wrapper scripts that set parameters for backupajs1241-1/+29
and use in test
2023-08-28nixos/restic: use openssh as configured in programs.sshajs1241-1/+1
2023-08-19nixos/duplicati: add package optionfrancescoDeSimone1-3/+4
2023-08-18nixos/restic: wait for network-online for timed backupsHugh O'Brien1-0/+2
2023-08-16nixos/backups/restic: handle cases when both dynamicFileFrom and paths are setRobert Obryk1-11/+14
Also, add a test to verify that it works. This change also removes the part of custom package test that verifies that the correct paths are provided. This is already tested by restore tests. Before this change, setting both paths and dynamicFileFrom would cause paths to be silently ignored. Making that actually apply the obvious interpretation seems to me to be strictly better than prohibiting the two from being set at the same time.
2023-07-29nixos/bacula: fix postgresql config and remove unneeded quotation marksRouven Seifert1-20/+20
The module falsely disabled postgresql completely when the bacula-sd was not enabled. Quotation marks are not necessary and only useful in `name` fields.
2023-07-24Merge pull request #244467 from wamserma/tarsnap-add-package-optionSandro1-5/+7
tarsnap: add package option
2023-07-22Merge pull request #239624 from Stunkymonkey/use-optionalString-thenFelix Bühler1-1/+1
treewide: use optionalString instead of 'then ""'
2023-07-21tarsnap: add package optionMarkus S. Wamser1-5/+7
2023-06-25treewide: use optional instead of 'then []'Felix Buehler1-1/+1
2023-06-24treewide: use optionalString instead of 'then ""'Felix Buehler1-1/+1
2023-05-15restic: add persistent default for timer unitJanik H1-0/+2
2023-05-14nixos/borgbackup: fix extraCompactArgsSophie Tauchert1-1/+1
Fixes the extraCompactArgs introduced with #224072 as the variable currently isn't added to the script's environment.
2023-05-10nixos/automysqlbackup: rename config option to settingsAaron Andersen1-2/+6
2023-05-10nixos/automysqlbackup: add some missing permissionsAaron Andersen1-1/+12
2023-04-30nixos/restic: use private tmp for service unitElias Probst1-0/+1
To reduce the danger of accidentally exposing sensitive files processed by a restic backup to other services/users, enable the `PrivateTmp=` feature of restic service units, which provides a per service isolation of `/tmp` and `/var/tmp`. Co-authored-by: Daniel Nagy <danielnagy@posteo.de>
2023-04-20Merge pull request #222080 from Stunkymonkey/nixos-optionalStringArtturi2-2/+2
2023-04-17borgmatic: fix timer wantedByimlonghao1-0/+3
2023-04-11nixos/borgbackup: run compact after pruneajs1241-0/+10
2023-04-07treewide: use more lib.optionalStringFelix Buehler2-2/+2
2023-03-30Merge pull request #221964 from randomnetcat/sanoid-service-packageIlan Joselevich2-2/+6
sanoid/syncoid: Add package options
2023-03-29(nixos/sanoid, nixos/syncoid): Add package optionsJanet Cobb2-2/+6
Allows changing the sanoid package to be used for these services.
2023-03-22Merge pull request #220656 from oxzi/restic-cache-fixLassulus1-3/+4
nixos/restic: generalize cache configuration
2023-03-11Merge pull request #191974 from tu-maurice/btrbk-doasJonas Heinrich1-15/+42
btrbk: Use sudo or doas based on configuration
2023-03-11nixos/restic: generalize cache configurationAlvar Penning1-3/+4
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-04Merge pull request #214759 from Tom-Hubrecht/borgmaticRyan Lahfa1-34/+52
nixos/borgmatic: Allow defining multiple configurations
2023-02-20docs: borg expects --rsh, not -rshJoachim Breitner1-1/+1
2023-02-12nixos/borgmatic: Allow defining multiple configurationsTom Hubrecht1-34/+52
2023-02-08nixos/*: remove trailing period in mkEnableOptionspennae1-1/+1
those are added by mkEnableOption, and .. is replaced to … by markdown processing.
2023-01-27nixos/manual: render module chapters with nixos-render-docspennae2-216/+1
this converts meta.doc into an md pointer, not an xml pointer. since we no longer need xml for manual chapters we can also remove support for manual chapters from md-to-db.sh since pandoc converts smart quotes to docbook quote elements and our nixos-render-docs does not we lose this distinction in the rendered output. that's probably not that bad, our stylesheet didn't make use of this anyway (and pre-23.05 versions of the chapters didn't use quote elements either). also updates the nixpkgs manual to clarify that option docs support all extensions (although it doesn't support headings at all, so heading anchors don't work by extension).
2023-01-22Merge pull request #204386 from robryk/resticassertNick Cao1-1/+22
nixos/restic: small enhancements
2023-01-11nixos/restic: add exclude parameterRobert Obryk1-1/+18
This provides an easy way to specify exclude patterns in config. It was already possible via extraBackupOptions; this change creates a simpler, similar to other backup services, way to specify them.
2023-01-11nixos/restic: assert that repository name is specifiedRobert Obryk1-0/+4
2023-01-10nixos/manual: move "edit the MD file" comments to generated XMLpennae2-1/+2
2023-01-10nixos/manual: generate module chapters with md-to-db.shpennae2-5/+4
2023-01-10nixos/manual: enable smart quotes for all MD chapterspennae2-2/+2
2023-01-10nixos/borgbackup: convert manual chapter to MDpennae3-152/+312
2023-01-10nixos/manual: normalize <screen>pennae1-1/+2
as with program listings, the leading/trailing newlines do not affect rendering but make markdown translation easier.