@echo off
set DB_HOST="localhost"
set PG_DUMP_DISK=D:
set PG_DUMP_DIR=\Postgresql\Program\bin
set BACK_DIR=D:\POSTGRES\BACKUPS
set DB_NAME=projop
set day=�te:~10,4%-�te:~4,2%-�te:~7,2%
rem goto the pg_dump.exe directory
%PG_DUMP_DISK%
cd %PG_DUMP_DISK%%PG_DUMP_DIR%
pg_dump -i -h �_HOST% -p 5432 -U postgres -F c -b -v -f "�CK_DIR%\�y%.backup" �_NAME%
echo "�y% %time% backup success!" >>D:\POSTGRES\info.log