Skip to content

Commit

Permalink
Update "b2 sync" commands
Browse files Browse the repository at this point in the history
  • Loading branch information
spantaleev committed Oct 14, 2022
1 parent 2e0fc5c commit 3cf0dcd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/configuring-playbook-s3-goofys.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ docker run -it --rm -w /work \
--env='B2_KEY_ID=YOUR_KEY_GOES_HERE' \
--env='B2_KEY_SECRET=YOUR_SECRET_GOES_HERE' \
--env='B2_BUCKET_NAME=YOUR_BUCKET_NAME_GOES_HERE' \
-v /matrix/synapse/storage/media-store/:/work \
--mount type=bind,src=/matrix/synapse/storage/media-store,dst=/work,ro \
--entrypoint=/bin/sh \
docker.io/tianon/backblaze-b2:2.1.0 \
-c 'b2 authorize-account $B2_KEY_ID $B2_KEY_SECRET > /dev/null && b2 sync /work/ b2://$B2_BUCKET_NAME'
docker.io/tianon/backblaze-b2:3.6.0 \
-c 'b2 authorize-account $B2_KEY_ID $B2_KEY_SECRET && b2 sync /work b2://$B2_BUCKET_NAME --skipNewer'
```

This is some initial file sync, which may take a very long time.
Expand Down
2 changes: 1 addition & 1 deletion docs/configuring-playbook-synapse-s3-storage-provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,5 @@ docker run -it --rm \
--mount type=bind,src=/matrix/synapse/storage/media-store,dst=/work,ro \
--entrypoint=/bin/sh \
tianon/backblaze-b2:3.6.0 \
-c 'b2 authorize-account $B2_KEY_ID $B2_KEY_SECRET > /dev/null && b2 sync /work b2://$B2_BUCKET_NAME --skipNewer'
-c 'b2 authorize-account $B2_KEY_ID $B2_KEY_SECRET && b2 sync /work b2://$B2_BUCKET_NAME --skipNewer'
```

0 comments on commit 3cf0dcd

Please sign in to comment.