feat: backup and restore script

This commit is contained in:
Khue Doan
2024-11-22 15:26:43 +07:00
parent 0a7aa2e6d7
commit 18d51382ef
8 changed files with 320 additions and 11 deletions

View File

@ -26,6 +26,11 @@ Save the following files to a safe location like a password manager (if you're u
- Username: `admin`
- Password: get from `global-secrets` namespace
## Backup
Now is a good time to set up backups for your homelab.
Follow the [backup and restore guide](../how-to-guides/backup-and-restore.md) to get started.
## Run the full test suite
After the homelab has been stabilized, you can run the full test suite to ensure that everything is working properly:

View File

@ -7,14 +7,12 @@
Although I try to keep the amount of external resources to the minimum, there's still need for a few of them.
Below is a list of external resources and why we need them (also see some [alternatives](#alternatives) below).
| Provider | Resource | Purpose |
| -------- | -------- | ------- |
| Terraform Cloud | Workspace | Terraform state backend |
| Cloudflare | DNS | DNS and [DNS-01 challenge](https://letsencrypt.org/docs/challenge-types/#dns-01-challenge) for certificates |
| Cloudflare | Tunnel | Public services to the internet without port forwarding |
| ntfy | Topic | External notification service to receive alerts |
<!-- | Minio | Bucket | Onsite backup | -->
<!-- | AWS | S3 Glacier | Offsite backup | -->
| Provider | Resource | Purpose |
| -------- | -------- | ------- |
| Terraform Cloud | Workspace | Terraform state backend |
| Cloudflare | DNS | DNS and [DNS-01 challenge](https://letsencrypt.org/docs/challenge-types/#dns-01-challenge) for certificates |
| Cloudflare | Tunnel | Public services to the internet without port forwarding |
| ntfy | Topic | External notification service to receive alerts |
## Create credentials
@ -79,4 +77,3 @@ To avoid vendor lock-in, each external provider must have an equivalent alternat
- ntfy:
- [Self-host your own ntfy server](https://docs.ntfy.sh/install)
- Any other [integration supported by Grafana Alerting](https://grafana.com/docs/grafana/latest/alerting/alerting-rules/manage-contact-points/integrations/#list-of-supported-integrations)
<!-- - Minio and S3 Glacier: any S3 compatible object storage, such as Backblaze B2, Minio... -->