From a68a1e1da77f6f87a1c315d057edc59a31746d1c Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Wed, 26 Jan 2022 19:09:26 +0100 Subject: Migrate jitsi + WIP backup doc --- op_guide/backup_minio/README.md | 70 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 op_guide/backup_minio/README.md (limited to 'op_guide/backup_minio') diff --git a/op_guide/backup_minio/README.md b/op_guide/backup_minio/README.md new file mode 100644 index 0000000..9e1fb62 --- /dev/null +++ b/op_guide/backup_minio/README.md @@ -0,0 +1,70 @@ +Add the admin account as `deuxfleurs` to your `~/.mc/config` file + +You need to choose some names/identifiers: + +```bash +export BUCKET_NAME=example +export NEW_ACCESS_KEY_ID=hello + +export NEW_SECRET_ACCESS_KEY=$(openssl rand -base64 60) +export POLICY_NAME="policy-$BUCKET_NAME" +``` + +Create a new bucket: + +```bash +mc mb deuxfleurs/$BUCKET_NAME +``` + +Create a new user: + +```bash +mc admin user add deuxfleurs $NEW_ACCESS_KEY_ID $NEW_SECRET_ACCESS_KEY +``` + +Add this new user to your `~/.mc/config.json` file + +--- + +Create a policy for this bucket and save it as json: + +```bash +cat > /tmp/policy.json <