adaptai / platform /aiml /experiments /transfer_monitor.sh
ADAPT-Chase's picture
Add files using upload-large-folder tool
3e626a5 verified
#!/bin/bash
echo "Git Repository Transfer Monitor"
echo "=============================="
echo "Source: vast2:/home/x/adaptai/experiments/.git/"
echo "Destination: /data/adaptai/platform/aiml/experiments/.git/"
echo ""
# Check if rsync process is running
if ps aux | grep "rsync.*vast2" | grep -v grep > /dev/null; then
echo "βœ… Transfer Status: ACTIVE"
echo "Process ID(s): $(ps aux | grep "rsync.*vast2" | grep -v grep | awk '{print $2}' | tr '\n' ' ')"
# Check destination directory size
if [ -d "/data/adaptai/platform/aiml/experiments/.git" ]; then
DEST_SIZE=$(du -sh "/data/adaptai/platform/aiml/experiments/.git" 2>/dev/null | awk '{print $1}')
echo "πŸ“ Destination Size: ${DEST_SIZE:-0B}"
fi
echo ""
echo "To monitor real-time progress:"
echo " tail -f /tmp/rsync_output.log"
echo ""
echo "To check process status:"
echo " ps aux | grep rsync | grep vast2"
else
echo "❌ Transfer Status: NOT RUNNING"
echo ""
echo "Check if transfer completed or failed:"
if [ -d "/data/adaptai/platform/aiml/experiments/.git" ]; then
echo "βœ… Destination directory exists"
DEST_SIZE=$(du -sh "/data/adaptai/platform/aiml/experiments/.git" 2>/dev/null | awk '{print $1}')
echo "πŸ“ Destination Size: ${DEST_SIZE:-0B}"
else
echo "❌ Destination directory not found"
fi
fi