summaryrefslogtreecommitdiff
path: root/genesishosting/backups/dr/assets_azuracast.md
blob: ad687edb18dbc92f702991bd685f7cb508f7e747 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
## 2025-05-02 22:24:25 – MinIO Bucket Access Configuration for Mastodon

**Bucket**: `assets-mastodon`
**Server**: `shredderv2`
**User**: `genesisuser`
**Permissions**: Read / Write / Delete
**Policy Name**: `assets-mastodon-rw-policy`

### Commands Executed:

```bash
mc alias set localminio http://localhost:9000 genesisadmin MutationXv3!

cat > assets_mastodon_rw_policy.json <<EOF
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Action": [
        "s3:GetBucketLocation",
        "s3:ListBucket"
      ],
      "Effect": "Allow",
      "Resource": "arn:aws:s3:::assets-mastodon"
    },
    {
      "Action": [
        "s3:PutObject",
        "s3:GetObject",
        "s3:DeleteObject"
      ],
      "Effect": "Allow",
      "Resource": "arn:aws:s3:::assets-mastodon/*"
    }
  ]
}
EOF

mc admin policy add localminio assets-mastodon-rw-policy assets_mastodon_rw_policy.json
mc admin policy set localminio assets-mastodon-rw-policy user=genesisuser
```

### Outcome:

User `genesisuser` now has full authenticated access to `assets-mastodon` on `shredderv2`'s MinIO.

---

## 2025-05-02 22:43:00 – MinIO Transfer Log: AzuraCast Assets

**Source**: `thevault:/nexus/miniodata/assets_azuracast`
**Destination**: `shredderv2 MinIO` bucket `assets-azuracast`

### Transfer Method:

```bash
rclone sync thevault:/nexus/miniodata/assets_azuracast localminio:assets-azuracast \
  --progress \
  --transfers=8 \
  --checkers=8 \
  --s3-chunk-size=64M \
  --s3-upload-concurrency=4 \
  --s3-acl=private \
  --s3-storage-class=STANDARD
```

### Outcome:

Data from AzuraCast backup (`assets_azuracast`) successfully synchronized to MinIO bucket `assets-azuracast` on `shredderv2`.

---

## 2025-05-02 23:05:00 – MinIO Transfer Log: Mastodon Assets

**Source**: `thevault:/nexus/miniodata/assets_mastodon`
**Destination**: `shredderv2 MinIO` bucket `assets-mastodon`

### Transfer Method:

```bash
rclone sync thevault:/nexus/miniodata/assets_mastodon localminio:assets-mastodon \
  --progress \
  --transfers=8 \
  --checkers=8 \
  --s3-chunk-size=64M \
  --s3-upload-concurrency=4 \
  --s3-acl=private \
  --s3-storage-class=STANDARD
```

### Outcome:

Assets from `assets_mastodon` replicated to `assets-mastodon` bucket on `shredderv2`. No impact to production (`shredderv1`) during sync.