aboutsummaryrefslogtreecommitdiff
path: root/op_guide
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2022-05-10 15:42:24 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2022-05-10 15:42:41 +0200
commitd712c08dbcb539e974d17ec23f590dbc9f157e4b (patch)
treea01c2e12e4149ee209cf921ccb04ad23bdfb39a9 /op_guide
parent415075b01023a8e920d5c1784a15d812f8ea88d2 (diff)
downloadinfrastructure-d712c08dbcb539e974d17ec23f590dbc9f157e4b.tar.gz
infrastructure-d712c08dbcb539e974d17ec23f590dbc9f157e4b.zip
Update the doc
Diffstat (limited to 'op_guide')
-rw-r--r--op_guide/restic/README.md16
1 files changed, 15 insertions, 1 deletions
diff --git a/op_guide/restic/README.md b/op_guide/restic/README.md
index a7576c0..cf67d92 100644
--- a/op_guide/restic/README.md
+++ b/op_guide/restic/README.md
@@ -30,7 +30,7 @@ Add this new user to your `~/.mc/config.json`, run this command before to genera
```
cat > /dev/stdout <<EOF
"$NEW_ACCESS_KEY_ID": {
- "url": "$ENDPOINT",
+ "url": "https://$ENDPOINT",
"accessKey": "$NEW_ACCESS_KEY_ID",
"secretKey": "$NEW_SECRET_ACCESS_KEY",
"api": "S3v4",
@@ -100,6 +100,17 @@ export RESTIC_REPOSITORY="s3:$ENDPOINT/$BUCKET_NAME"
export RESTIC_PASSWORD=$(openssl rand -base64 32)
```
+Save the password:
+
+```bash
+echo $RESTIC_PASSWORD
+pass deuxfleurs/backups/$SERVICE_NAME/restic_password
+# ctrl + c -> ctrl + v
+cd ~/.password-store/deuxfleurs/
+git pull ; git push
+cd -
+```
+
Then init the repo for restic from your machine:
```
@@ -162,3 +173,6 @@ I propose:
```
restic forget --prune --keep-within 1m1d --keep-within-weekly 3m --keep-within-monthly 1y
```
+
+Find an existing .hcl declaration that uses restic in this repository or in the Deuxfleurs/nixcfg repository
+to use it as an example.