fix: backups jobs and better documentation

This commit is contained in:
2025-11-27 23:52:49 +00:00
parent b82d26f01d
commit ee4afed826
4 changed files with 20 additions and 16 deletions

View File

@@ -5,41 +5,45 @@ Welcome to public repository of my [Git Server](https://git.limbosolutions.com)
Using [gitea](https://git.limbosolutions.com/kb/gitea) as git server. Using [gitea](https://git.limbosolutions.com/kb/gitea) as git server.
- [Deploy](#deploy) - [Deploy](#deploy)
- [App Deploy](#app-deploy) - [Environment files](#environment-files)
- [App](#app)
- [Continuous Deploy](#continuous-deploy) - [Continuous Deploy](#continuous-deploy)
- [Infra Deploy](#infra-deploy) - [Infra](#infra)
- [Deploy all](#deploy-all) - [All](#all)
- [Backups](#backups) - [Backups](#backups)
## Deploy ## Deploy
### App Deploy ### Environment files
[Requires environment variables](./manifests/app/cronjobs/backups/.env.example). - /.deploy/app/cronjobs/backups/.env.d/secrets [Example:](./deploy/app/cronjobs/backups/.env.d/secrets.example).
*Can be set creating file ./manifests/app/cronjobs/backups/.env with values.* - /.deploy/app/cronjobs/backups/.env.d/borg_key [Example:](./deploy/app/cronjobs/backups/.env.d/borg_key.example).
- /.deploy/app/cronjobs/backups/.env.d/id_rsa [Example:](./deploy/app/cronjobs/backups/.env.d/id_rsa.example).
### App
```bash ```bash
./deploy-scripts/apply-app.sh ./deploy/apply-app.sh
``` ```
- [Manifests](/manifests/infra) - [kustomization](/deploy/app/kustomization.yaml)
### Continuous Deploy ### Continuous Deploy
Executes [App Deploy](#app-deploy) using an [Gitea workflow](./.gitea/workflows/app-deploy.yaml). Executes [App Deploy](#app) using an [Gitea workflow](./.gitea/workflows/app-deploy.yaml).
### Infra Deploy ### Infra
```bash ```bash
./deploy-scripts/apply-infra.sh ./deploy/apply-infra.sh
``` ```
- [Manifests](/manifests/app) - [kustomization](/deploy/infra/kustomization.yaml)
### Deploy all ### All
```bash ```bash
./deploy-scripts/apply.sh ./deploy/apply.sh
``` ```
## Backups ## Backups

View File

@@ -108,7 +108,7 @@ spec:
else else
# Repository size is within limits for offsite sync # Repository size is within limits for offsite sync
# ssh to backup server and enforce rclone to onedrive # ssh to backup server and enforce rclone to onedrive
remote-connect "rclone sync $SSH_FOLDER $OFFSITE_TARGET_FOLDER --progress" && \ remote-connect "rclone sync $SSH_FOLDER $OFFSITE_TARGET_FOLDER --stats=0" && \
echo "INFO: Finished Backup of git.limbosolutions.com (offsite) ($((SCRIPT_DURATION / 60 / 60)):$((SCRIPT_DURATION / 60)):$((SCRIPT_DURATION % 60))) " echo "INFO: Finished Backup of git.limbosolutions.com (offsite) ($((SCRIPT_DURATION / 60 / 60)):$((SCRIPT_DURATION / 60)):$((SCRIPT_DURATION % 60))) "
fi fi

View File

@@ -52,7 +52,7 @@ spec:
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: gitea-backup name: gitea-backup
key: pbs_repository key: PBS_REPOSITORY
- name: PBS_PASSWORD - name: PBS_PASSWORD
valueFrom: valueFrom:
secretKeyRef: secretKeyRef: