forked from Deuxfleurs/infrastructure
Update the doc
This commit is contained in:
parent
415075b010
commit
d712c08dbc
1 changed files with 15 additions and 1 deletions
|
@ -30,7 +30,7 @@ Add this new user to your `~/.mc/config.json`, run this command before to genera
|
||||||
```
|
```
|
||||||
cat > /dev/stdout <<EOF
|
cat > /dev/stdout <<EOF
|
||||||
"$NEW_ACCESS_KEY_ID": {
|
"$NEW_ACCESS_KEY_ID": {
|
||||||
"url": "$ENDPOINT",
|
"url": "https://$ENDPOINT",
|
||||||
"accessKey": "$NEW_ACCESS_KEY_ID",
|
"accessKey": "$NEW_ACCESS_KEY_ID",
|
||||||
"secretKey": "$NEW_SECRET_ACCESS_KEY",
|
"secretKey": "$NEW_SECRET_ACCESS_KEY",
|
||||||
"api": "S3v4",
|
"api": "S3v4",
|
||||||
|
@ -100,6 +100,17 @@ export RESTIC_REPOSITORY="s3:$ENDPOINT/$BUCKET_NAME"
|
||||||
export RESTIC_PASSWORD=$(openssl rand -base64 32)
|
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:
|
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
|
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.
|
||||||
|
|
Loading…
Reference in a new issue