mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
add syntax highlighting for readability
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/
|
||||||
|
|
Loading…
Reference in a new issue