Files
admin/scripts/iis-migration-to-ruvds
vitya 068f7b2691 docs(iis-migration): owner DNS-flip instructions (labtools, tandemmebel)
— labtools.ru: Я.360 (admin.yandex.ru/domains), apex+www A → 80.64.31.36
— tandemmebel.ru: reg.ru, apex A → 80.64.31.36; www/maljarka follow via CNAME

Server-side prep for tandemmebel done same session: cert tandemmebel.ru
(LE R13, NotAfter 2026-07-21) extracted from local traefik acme.json,
imported to RUVDS LocalMachine\My, attached to existing IIS bindings for
apex + www. Wiki entity ruvds-iis-host.md stale on this point — bindings
were already created during initial migration, just lacked cert.
2026-05-28 15:41:23 +03:00
..

IIS migration to RUVDS — execution scripts

Скрипты для миграции IIS-хостинга windows-recovery-host (DESKTOP-NSEF0UK) → RUVDS Win Server 2025 Core (80.64.31.36).

Контекст и план целиком — .tasks/iis-migration-to-ruvds.md + .wiki/concepts/windows-server-2025-core-bootstrap.md.

Execution order

# Script Where to run Purpose
1 01-ruvds-bootstrap.ps1 на RUVDS под RDP (PowerShell admin) Install IIS + URL Rewrite + open FW 80/443 + open SMB scoped to source IP + create C:\sites share. Idempotent.
2 02-source-transfer.ps1 (coming next) на source (DESKTOP-NSEF0UK) net-use → robocopy snolla → verify.
3 03-ruvds-recreate-sites.ps1 (coming next) на RUVDS appcmd add site / bindings / web.config conn-string swap → mssql.kzntsv.site,1433.
4 04-pilot-and-swap.md (playbook, not script) mixed Pilot kupimknigi.spb.ru через hosts-file → 24h soak → DNS A swap.
5 99-ruvds-cleanup-smb.ps1 (after cutover) на RUVDS Remove SMB share + FW rule (закрываем 445 после migration).

Pre-reqs

  • RUVDS up + RDP ready (pass show ruvds-iis/full-env)
  • Source public IP 46.151.25.64 уже whitelist'нут в скрипте #1 (если source IP меняется — -SourceIp <new> параметр)
  • На RUVDS — Administrator-shell PowerShell

How to copy scripts to RUVDS

Два варианта:

A. RDP drive-redirect (рекомендуемо):

  1. mstsc /v:80.64.31.36 → Show Options → Local Resources → More → Drives → отметить C:ОК.
  2. После logon в RUVDS — \\tsclient\C\ mount'нут. Скопировать C:\Users\vitya\projects\.admin\scripts\iis-migration-to-ruvds\01-ruvds-bootstrap.ps1C:\bootstrap.ps1.
  3. PowerShell admin → C:\bootstrap.ps1.

B. Paste-friendly: открыть скрипт в нашей репе локально → copy всё содержимое → в RUVDS notepad C:\bootstrap.ps1 → paste → save → run.

Verification после bootstrap'а

На source:

Test-NetConnection 80.64.31.36 -Port 445   # должно стать True
Test-NetConnection 80.64.31.36 -Port 443   # должно стать True

Если оба True — переходим к script #2.