FLUJOS/INFO/DOCS/sshpass_transfer_comandos.txt
CAPITANSITO 954f47996f refactor: reorganizar docs y pocs bajo INFO/
- docs/ → INFO/DOCS/CONTEXT/ (documentación técnica en markdown)
- FLUJOS/DOCS/ + FLUJOS_DATOS/DOCS/ → INFO/DOCS/ (txts de arquitectura)
- POCS/ → INFO/POCS/ (pruebas de concepto)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 23:49:33 +02:00

38 lines
1.5 KiB
Text

# COMANDOS SSHPASS - TRANSFERENCIA FLUJOS_DATOS
# Servidor destino: d1d4k@server045151.vps.webdock.cloud
# Fecha: 2026-04-01
# =====================================================
# 1. VERIFICAR QUE SSHPASS ESTÁ INSTALADO
which sshpass || sudo apt install sshpass -y
# 2. TRANSFERIR SOLO ARCHIVOS .txt (tokenizados/raw)
sshpass -p 'TU_PASSWORD' rsync -avz --progress \
--include='*/' \
--include='*.txt' \
--exclude='*' \
/var/www/theflows.net/flujos/FLUJOS_DATOS/ \
d1d4k@server045151.vps.webdock.cloud:/home/d1d4k/UP-LEAKS/FLUJOS/FLUJOS_DATOS/
# 3. TRANSFERIR TODO (excluyendo virtualenv, logs mongo y cache)
sshpass -p 'TU_PASSWORD' rsync -avz --progress \
--exclude='myenv/' \
--exclude='MONGO/' \
--exclude='__pycache__/' \
/var/www/theflows.net/flujos/FLUJOS_DATOS/ \
d1d4k@server045151.vps.webdock.cloud:/home/d1d4k/UP-LEAKS/FLUJOS/FLUJOS_DATOS/
# 4. SOLO .txt DE SUBCARPETAS ESPECÍFICAS (TORRENTS + NOTICIAS + WIKIPEDIA)
for DIR in TORRENTS NOTICIAS WIKIPEDIA; do
sshpass -p 'TU_PASSWORD' rsync -avz --progress \
--include='*/' --include='*.txt' --exclude='*' \
/var/www/theflows.net/flujos/FLUJOS_DATOS/$DIR/ \
d1d4k@server045151.vps.webdock.cloud:/home/d1d4k/UP-LEAKS/FLUJOS/FLUJOS_DATOS/$DIR/
done
# NOTAS:
# - Reemplazar TU_PASSWORD con la contraseña real antes de ejecutar
# - myenv/ excluido: virtualenv, inútil en destino
# - MONGO/ excluido: logs de bd, no son datos de texto
# - rsync crea el directorio destino si no existe
# - Añadir --dry-run para simular sin transferir nada