Files
proxmox/scripts/archive/small-scripts/copy-all-to-proxmox.sh
defiQUG fbda1b4beb
Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
docs: Ledger Live integration, contract deploy learnings, NEXT_STEPS updates
- ADD_CHAIN138_TO_LEDGER_LIVE: Ledger form done; public code review repo bis-innovations/LedgerLive; init/push commands
- CONTRACT_DEPLOYMENT_RUNBOOK: Chain 138 gas price 1 gwei, 36-addr check, TransactionMirror workaround
- CONTRACT_*: AddressMapper, MirrorManager deployed 2026-02-12; 36-address on-chain check
- NEXT_STEPS_FOR_YOU: Ledger done; steps completable now (no LAN); run-completable-tasks-from-anywhere
- MASTER_INDEX, OPERATOR_OPTIONAL, SMART_CONTRACTS_INVENTORY_SIMPLE: updates
- LEDGER_BLOCKCHAIN_INTEGRATION_COMPLETE: bis-innovations/LedgerLive reference

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 15:46:57 -08:00

52 lines
1.5 KiB
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
# Load IP configuration
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
source "${PROJECT_ROOT}/config/ip-addresses.conf" 2>/dev/null || true
# Copy entire smom-dbis-138-proxmox directory to Proxmox host
# This copies everything needed for deployment
# Suppress locale warnings
export LC_ALL=C
export LANG=C
HOST="${1:-192.168.11.10}"
USER="${2:-root}"
REMOTE_DIR="${3:-/opt/smom-dbis-138-proxmox}"
echo "Copying entire project to $USER@$HOST:$REMOTE_DIR"
# Test connection (suppress locale warnings)
if ! ssh -o BatchMode=yes -o ConnectTimeout=5 "$USER@$HOST" "export LC_ALL=C; export LANG=C; exit" 2>/dev/null; then
echo "❌ Cannot connect to $HOST"
echo " Ensure SSH key is set up: ssh-copy-id $USER@$HOST"
exit 1
fi
# Create remote directory
ssh "$USER@$HOST" "mkdir -p $REMOTE_DIR"
# Copy entire smom-dbis-138-proxmox directory
echo "Copying files (this may take a few minutes)..."
rsync -avz --exclude='.git' --exclude='*.log' \
smom-dbis-138-proxmox/ \
"$USER@$HOST:$REMOTE_DIR/" || {
echo "⚠ rsync not available, using scp..."
scp -r smom-dbis-138-proxmox/* "$USER@$HOST:$REMOTE_DIR/"
}
# Make all scripts executable
ssh "$USER@$HOST" "find $REMOTE_DIR -name '*.sh' -exec chmod +x {} \;"
echo "✅ All files copied to $REMOTE_DIR"
echo ""
echo "SSH to Proxmox host and run:"
echo " ssh $USER@$HOST"
echo " cd $REMOTE_DIR"
echo " sudo ./scripts/deployment/deploy-phased.sh --source-project /path/to/smom-dbis-138"