-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathupload-data.sh
More file actions
40 lines (34 loc) · 1.36 KB
/
upload-data.sh
File metadata and controls
40 lines (34 loc) · 1.36 KB
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
#!/usr/bin/env bash
# TissuePlex — data upload script
#
# Run this on your Mac to transfer your Xenium dataset(s) to the server.
# rsync is resumable — if the upload is interrupted, just run the script again
# and it will continue where it left off.
#
# Usage:
# bash upload-data.sh
set -euo pipefail
# ── Configuration — edit these two lines ──────────────────────────────────────
SERVER_IP="YOUR_SERVER_IP" # e.g. 143.198.50.12
LOCAL_DATA_DIR="/Users/msbr/Large Files/Xenium/for-docker-testing"
# ─────────────────────────────────────────────────────────────────────────────
REMOTE_DATA_DIR="/mnt/tissuplex-data"
echo "Uploading data to ${SERVER_IP}:${REMOTE_DATA_DIR}"
echo "Source: $LOCAL_DATA_DIR"
echo
echo "This may take a long time for large datasets."
echo "The upload is resumable — re-run this script if it is interrupted."
echo
rsync \
--archive \
--verbose \
--progress \
--partial \
--human-readable \
--exclude="*.tmp" \
--exclude=".DS_Store" \
"$LOCAL_DATA_DIR/" \
"root@${SERVER_IP}:${REMOTE_DATA_DIR}/"
echo
echo "Upload complete."
echo "You can now open TissuePlex in your browser."