@echo off
setlocal EnableExtensions
chcp 65001 >nul
cd /d "%~dp0"
title OnlyCoin - Veritabani Yedegi

call "%CD%\scripts\resolve-node.cmd"
if errorlevel 1 goto :failed

"%NODE_EXE%" --no-warnings "%CD%\scripts\backup-database.js"
if errorlevel 1 goto :failed
pause
exit /b 0

:failed
echo Veritabani yedegi olusturulamadi.
pause
exit /b 1
