# Einmalig; auf Ziel B getrennt mit dessen Laufwerk wiederholen.
& {
  $ErrorActionPreference = 'Stop'
  $backupVolume = 'E:\'
  $repo = Join-Path $backupVolume 'FRAME_BACKUP'
  if (!(Test-Path -LiteralPath $backupVolume)) { throw 'Ziel fehlt.' }
  if (Test-Path -LiteralPath $repo) { throw 'Ordner existiert.' }
  & restic.exe -r $repo init
  if ($LASTEXITCODE -ne 0) { throw 'Initialisierung fehlgeschlagen.' }
}
