summary refs log tree commit diff
path: root/nixos/modules/services/backup/postgresql-backup.nix
Commit message (Collapse)AuthorAge
* nixos/doc: clean up defaults and examplesNaïm Favier2021-10-04
|
* nixos postgresql-backup: add `compression` optionRobert Helgesson2021-08-05
| | | | | | This option allows basic configuration of the compression technique used in the backup script. Specifically it adds `none` and `zstd` as new alternatives, keeping `gzip` as the default.
* nixos/postgresqlBackup: Only replace backup when successfulRobert Hensing2021-06-05
| | | | | | | | | | | | | Previously, a failed backup would always overwrite ${db}.sql.gz, because the bash `>` redirect truncates the file; even if the backup was going to fail. On the next run, the ${db}.prev.sql.gz backup would be overwritten by the bad ${db}.sql.gz. Now, if the backup fails, the ${db}.in-progress.sql.gz is in an unknown state, but ${db}.sql.gz will not be written. On the next run, ${db}.prev.sql.gz (our only good backup) will not be overwritten because ${db}.sql.gz does not exist.
* nixos/postgresqlBackup: Use PATH for readabilityRobert Hensing2021-06-04
|
* nixos/postgresqlBackup: allow defining multiple times to start atMartin Weinelt2021-05-14
| | | | | | | | | | | | | | Or … none! Because forcing a string always results in an OnCalender= setting, but an empty string leads to an empty value. > postgresqlBackup-hass.timer: Timer unit lacks value setting. Refusing. or > postgresqlBackup-miniflux.timer: Cannot add dependency job, ignoring: Unit postgresqlBackup-miniflux.timer has a bad unit file setting. I require the postgresqlBackup in my borgbackup unit, so I don't strictly need the timer and could previously set it to an empty list.
* nixos/postgresqlBackup: add typesFritz Otlinghaus2021-01-31
|
* treewide: add bool type to enable options, or make use of mkEnableOptionDominik Xaver Hörl2020-04-21
| | | | Add missing type information to manually specified enable options or replace them by mkEnableOption where appropriate.
* postgresql-backup: Use saner defaults for pg_dumpChristian Kampka2019-12-15
|
* nixos/treewide: Move rename.nix imports to their respective modulesSilvan Mosberger2019-12-10
| | | | | | | | A centralized list for these renames is not good because: - It breaks disabledModules for modules that have a rename defined - Adding/removing renames for a module means having to find them in the central file - Merge conflicts due to multiple people editing the central file
* nixos/modules: Remove all usages of types.stringSilvan Mosberger2019-08-31
| | | | | | And replace them with a more appropriate type Also fix up some minor module problems along the way
* nixos/postgresqlBackup: replace deprecated usage of PermissionsStartOnlyAaron Andersen2019-04-13
| | | | see https://github.com/NixOS/nixpkgs/issues/53852
* nixos/postgresqlBackup: add backupAll optionJörg Thalheim2019-01-19
| | | | | | | | | | | | For large setups it is useful to list all databases explicit (for example if temporary databases are also present) and store them in extra files. For smaller setups it is more convenient to just backup all databases at once, because it is easy to forget to update configuration when adding/renaming databases. pg_dumpall also has the advantage that it backups users/passwords. As a result the module becomes easier to use because it is sufficient in the default case to just set one option (services.postgresqlBackup.enable).
* nixos/postgresqlBackup: set to umask to 0077Markus Kowalewski2018-11-06
| | | | | * Ensure that the backup file is only readable by the owner * Add file permission test to tests
* nixos/pgbackup: rename option period -> startAtMarkus Kowalewski2018-06-20
|
* nixos/pgbackup: Fix the postgres backup modulesMarkus Kowalewski2018-06-17
|
* postgresql-backup: cleanupNikolay Amiantov2015-05-19
|
* postgresql-backup: use system postgresql packageNikolay Amiantov2015-05-13
|
* Rewrite ‘with pkgs.lib’ -> ‘with lib’Eelco Dolstra2014-04-14
| | | | | | | | Using pkgs.lib on the spine of module evaluation is problematic because the pkgs argument depends on the result of module evaluation. To prevent an infinite recursion, pkgs and some of the modules are evaluated twice, which is inefficient. Using ‘with lib’ prevents this problem.
* Move all of NixOS to nixos/ in preparation of the repository mergeEelco Dolstra2013-10-10