-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathinit_auth.bat
More file actions
31 lines (26 loc) · 764 Bytes
/
init_auth.bat
File metadata and controls
31 lines (26 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@echo off
echo ==========================================
echo Telegram Backup - Authentication Setup
echo ==========================================
echo.
if not exist .env (
echo [ERROR] .env file not found!
echo Please copy .env.example to .env and fill in your credentials.
pause
exit /b 1
)
if not exist data\backups (
mkdir data\backups
)
echo Starting interactive authentication container...
echo You will be asked for your Telegram verification code.
echo.
docker compose run --rm telegram-backup python -m src.setup_auth
echo.
if %ERRORLEVEL% EQU 0 (
echo [SUCCESS] Authentication completed!
echo You can now run 'docker compose up -d' to start the backup service.
) else (
echo [ERROR] Authentication failed.
)
pause