Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

20 Zeilen
1.1KB

  1. @echo off
  2. rem SQLite backup and verification, run inside the "axonasp" container (the server keeps running).
  3. rem
  4. rem scripts\backup.cmd backup [file] consistent copy (VACUUM INTO) to db\backups\app-YYYYMMDD-HHMMSS.sqlite
  5. rem or [file], then integrity check and row-count comparison with the live db
  6. rem scripts\backup.cmd verify <file> integrity check, foreign keys, latest migration, row counts per table
  7. rem scripts\backup.cmd repair [apply] foreign key repair of the live db after an import (dry run without apply)
  8. rem
  9. rem File names are relative to the repo root, for example db/backups/app-20261205-120000.sqlite.
  10. rem To restore, use scripts\restore.cmd <file>. The last line printed is "RESULT: ok" or "RESULT: failed".
  11. setlocal
  12. set CMD=%~1
  13. if "%CMD%"=="" set CMD=backup
  14. if /i "%CMD%"=="restore" (
  15. echo Use scripts\restore.cmd ^<file^>: it stops the server first.
  16. exit /b 1
  17. )
  18. docker exec -u axonasp -e SERVER_WEB_ROOT=/opt/axonasp/site -e "BACKUP_ACTION=%CMD%" -e "BACKUP_FILE=%~2" axonasp ./axonasp-cli -r /opt/axonasp/site/scripts/backup.asp
  19. exit /b %errorlevel%

Powered by TurnKey Linux.