summaryrefslogtreecommitdiff
path: root/sync.sh
blob: 0b529694be678826e3df63db2b809bde3e64ff12 (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
#!/bin/bash

# Setup alias (even if it already exists)
mc alias set minio http://localhost:9000 genesisadmin MutationXv3! || true

echo "[*] Syncing genesisassets → Q:"
mc mirror \
  --overwrite \
  --remove \
  --exclude "/System Volume Information/**" \
  --exclude "/$RECYCLE.BIN/**" \
  --exclude "**/Thumbs.db" \
  minio/genesisassets /mnt/spl/qdrive || echo "[!] Q: sync completed with warnings"

echo "[*] Syncing genesislibrary → R:"
mc mirror \
  --overwrite \
  --remove \
  --exclude "/System Volume Information/**" \
  --exclude "/$RECYCLE.BIN/**" \
  --exclude "**/Thumbs.db" \
  minio/genesislibrary /mnt/spl/rdrive || echo "[!] R: sync completed with warnings"

echo "[✓] All syncs finished"