about summary refs log tree commit diff
path: root/nixos/modules/services/backup
AgeCommit message (Collapse)AuthorFilesLines
2023-12-13nixos/restic: append PATH in wrappers instead of overwritingajs1241-1/+2
fixes "mount" (cherry picked from commit be0a6b0dd6b72667a930a8e26bf4ae9e99b311a5)
2023-12-09nixos/btrbk: Optimize sortRobert Hensing1-2/+2
This avoids computing the prio more than necessary. The test evaluates to the same derivation hash. (cherry picked from commit 7438f4e0de4f41a562c4292a035f406129208bfd)
2023-12-09nixos/postgresqlBackup: add Scrumplex as maintainerSefa Eyeoglu1-0/+1
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net> (cherry picked from commit 58f091d5ac33943664b7567d68a6777ddc775df1)
2023-12-09nixos/postgresqlBackup: add --rsyncable to compression programsSefa Eyeoglu1-2/+2
The --rsyncable option changes the behavior of gzip/zstd so that the resulting files can be incrementally backed up easily. Tools like Borg, rsync and xdelta can make use their deduplication/diff mechanisms more easily. In my local testing, this resulted in a 2% size increase for backup files. Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net> (cherry picked from commit 40c3d65bdff49b818073d7c92cf0ec6d7fab2bba)
2023-11-27nixos/syncoid: add possibility to use string type for sshKey optionsdatafoo1-6/+2
The sshKey options do not need to be a valid path at build time. Using string instead allow use case when the path is not known at build time such as when using systemd credentials (e.g. `sshKey = "\${CREDENTIALS_DIRECTORY}/zfs-replication_ed25519";`). (cherry picked from commit e98fd99eb3a6c81a18ea9494f684764e75315e8f)
2023-11-26nixos/btrbk: Support both Miller's sudo and sudo-rsnicoo1-17/+18
(cherry picked from commit 19af28537bb59c849a666fce27e15d1f33fb03ee)
2023-11-07nixos/restic: allow timer to be disabledRobert Obryk1-3/+5
2023-11-07Merge pull request #264882 from robryk/resticfixJanik1-3/+3
nixos/restic: fix #264696 and add a regression test
2023-11-06syncoid: disable PrivateUsers in systemd unitIvan Petkov1-1/+1
* leaving PrivateUsers=true appears to break when using zfs-2.2.0
2023-11-01nixos/restic: fix #264696 and add a regression testRobert Obryk1-3/+3
Make sure that preStart and postStop are included in all cases when they are nonempty.
2023-10-30postgresql_11: removeMaximilian Bosch1-2/+2
As described in the release lifecycle docs from postgresql[1], v11 will stop receiving fixes as of Nov 9 2023. This means it's EOL throughout the entire lifetime of 23.11, so let's drop it now. A lot of examples are also referencing postgresql_11. Where it's sensible, use postgresql_15 as example now to avoid confusion. This is also handy because the LLVM 16 fix for postgresql is not available for postgresql 11 ;-) [1] https://www.postgresql.org/support/versioning/
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