more backup fixes

This commit is contained in:
2024-09-30 15:39:34 +02:00
parent 07c3a0f086
commit 21cef5b45a
9 changed files with 10 additions and 190 deletions

View File

@@ -1,15 +1,8 @@
# How to restore
# How to initialize a new target
I used multiple targets for backup. Each target needs to be initialized with a repository.
1. Port forward the rest api for gcloud
```bash
kubectl port-forward -n backup service/rclone-gcloud 8000
```
After the target (bucket or other) is created, run the following command **locally** to initialize the target:
2. Load the snapshots locally
```bash
restic -r rest:http://127.0.0.1:8000/kluster mount /mnt/restic
```
(The password is in a secret)
3. Copy relevant files to the correct location on the NAS
```bash
restic -r <target> init
```