summaryrefslogtreecommitdiff
path: root/sync.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sync.sh')
-rwxr-xr-xsync.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/sync.sh b/sync.sh
new file mode 100755
index 0000000..0b52969
--- /dev/null
+++ b/sync.sh
@@ -0,0 +1,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"