-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backup contracts for files and databases (#344)
This PR continues the work started in #314 I had to create my own PR since I couldn't add commits on the fork. --------- Co-authored-by: sivertism <[email protected]>
- Loading branch information
Showing
38 changed files
with
1,128 additions
and
364 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# PostgreSQL Block {#blocks-postgresql} | ||
|
||
Defined in [`/modules/blocks/postgresql.nix`](@REPO@/modules/blocks/postgresql.nix). | ||
|
||
This block sets up a [PostgreSQL][] database. | ||
|
||
[postgresql]: https://www.postgresql.org/ | ||
|
||
## Tests {#blocks-postgresql-tests} | ||
|
||
Specific integration tests are defined in [`/test/blocks/postgresql.nix`](@REPO@/test/blocks/postgresql.nix). | ||
|
||
## Database Backup Requester Contracts {#blocks-postgresql-contract-databasebackup} | ||
|
||
This block can be backed up using the [database backup](contracts-databasebackup.html) contract. | ||
|
||
Contract integration tests are defined in [`/test/contracts/databasebackup.nix`](@REPO@/test/contracts/databasebackup.nix). | ||
|
||
### Backing up All Databases {#blocks-postgresql-contract-databasebackup-all} | ||
|
||
```nix | ||
{ | ||
my.backup.provider."postgresql" = { | ||
request = config.shb.postgresql.databasebackup; | ||
settings = { | ||
// Specific options for the backup provider. | ||
}; | ||
}; | ||
} | ||
``` | ||
|
||
## Options Reference {#blocks-postgresql-options} | ||
|
||
```{=include=} options | ||
id-prefix: blocks-postgresql-options- | ||
list-id: selfhostblocks-block-postgresql-options | ||
source: @OPTIONS_JSON@ | ||
``` |
Oops, something went wrong.