add syntax highlighting for readability

JesseBot 2023-11-19 10:58:10 +01:00
parent e6679befc3
commit b161b9eca2

@ -5,16 +5,19 @@ On mac: `brew install restic`
### Configuration ### Configuration
Set these environment variables. The key values do not matter. Set these environment variables. The key values do not matter.
``` ```bash
export AWS_ACCESS_KEY_ID=any-key-id export AWS_ACCESS_KEY_ID=any-key-id
export AWS_SECRET_ACCESS_KEY=any-access-key export AWS_SECRET_ACCESS_KEY=any-access-key
``` ```
### Execute commands ### Execute commands
First, create the bucket:
```bash
s3cmd mb s3://resticbucket
``` ```
# create the bucket
$ s3cmd mb s3://resticbucket
Then, initialize the restic bucket and backup to it:
```console
$ restic -r s3:http://localhost:8333/resticbucket init $ restic -r s3:http://localhost:8333/resticbucket init
$ restic -r s3:http://localhost:8333/resticbucket backup /Users/chris/dev/gopath/bin/ $ restic -r s3:http://localhost:8333/resticbucket backup /Users/chris/dev/gopath/bin/