diff options
Diffstat (limited to 'op_guide/restic/README.md')
-rw-r--r-- | op_guide/restic/README.md | 16 |
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. |