echo on SET PGPASSWORD=xxxxxxx set CUREDATE=%DATE% set CURETIME=%TIME% set DATTIM=%CUREDATE:~6,4%%CUREDATE:~3,2%%CUREDATE:~0,2%_%CURETIME:~0,2%_%CURETIME:~3,2% set DATTIM set SCRIP pg_dump.exe --file "E:\BasePostgres\xxx_%DATTIM%.backup" --host "localhost" --port "5432" --username "postgres" --verbose --format=c --blobs "xxx" echo F| xcopy "E:\BasePostgres\xxx_%DATTIM%.backup" "Q:\BasePostgres\UNI\xxx_%DATTIM%.backup" /f /y /s echo F| xcopy "E:\BasePostgres\xxx_%DATTIM%.backup" "T:\BasePostgres\UNI\xxx_%DATTIM%.backup" /f /y /s pause 20