{"id":339512,"date":"2022-10-10T21:00:32","date_gmt":"2022-10-10T21:00:32","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=339512"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=339512","title":{"rendered":"<span>\u0420\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u00ab1\u0421\u00bb-\u0431\u0430\u0437 \u043d\u0430 PostgreSQL \u0432 Windows c \u043f\u043e\u043c\u043e\u0449\u044c\u044e pgAdmin, bat-\u0444\u0430\u0439\u043b\u043e\u0432 \u0438 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/4d0\/c66\/9bd\/4d0c669bdbeba3928b9ba083652b960f.png\" alt=\"PostgreSQL\" title=\"PostgreSQL\" width=\"520\" height=\"286\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4d0\/c66\/9bd\/4d0c669bdbeba3928b9ba083652b960f.png\"\/><figcaption>PostgreSQL<\/figcaption><\/figure>\n<p><strong>\u0410\u0432\u0442\u043e\u0440 \u0441\u0442\u0430\u0442\u044c\u0438:<\/strong>\u00a0\u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u044f 1\u0421:ERP \u0412\u043d\u0435\u0434\u0440\u0435\u043d\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0446\u0435\u043d\u0442\u0440\u0430 \u00ab\u0420\u0430\u0437\u0434\u043e\u043b\u044c\u0435\u00bb \u0414\u043c\u0438\u0442\u0440\u0438\u0439 \u041c\u0430\u043b\u044b\u0448\u0435\u0432.<\/p>\n<h3>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h3>\n<p><strong>pgAdmin<\/strong>\u00a0\u2014 \u044d\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0434\u043b\u044f \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0430\u0437 \u0434\u0430\u043d\u043d\u044b\u0445 PostgreSQL, \u0432 \u043c\u043e\u0451\u043c \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0438 \u044d\u0442\u043e \u0430\u043d\u0430\u043b\u043e\u0433 MS SQL Management Studio. \u0421\u0442\u0430\u0432\u0438\u0442\u0441\u044f pgAdmin \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043e\u0442 PostgreSQL. \u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0430\u0439\u0434\u0438\u0442\u0435, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u0438\u043a\u0430\u0445. \u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0431\u0443\u0434\u0435\u0442 \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u043a\u0430\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e pgAdmin, bat-\u0444\u0430\u0439\u043b\u043e\u0432 \u0438 \u041f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430 \u0437\u0430\u0434\u0430\u043d\u0438\u0439 Windows \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0438 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u043f\u0438\u0439 \u0431\u0430\u0437 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/297\/774\/fb9\/297774fb9eebd76b406a83f2c802c2cc.png\" alt=\"psql-1.png\" title=\"psql-1.png\" width=\"1005\" height=\"271\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/297\/774\/fb9\/297774fb9eebd76b406a83f2c802c2cc.png\"\/><figcaption>psql-1.png<\/figcaption><\/figure>\n<h3>\u041e\u0442\u043a\u0440\u044b\u0442\u0438\u0435 pgAdmin<\/h3>\n<p>\u0427\u0435\u0440\u0435\u0437 \u043f\u0443\u0441\u043a \u0438\u043b\u0438 \u0432 \u043f\u0440\u043e\u0432\u043e\u0434\u043d\u0438\u043a\u0435 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/bce\/ef3\/113\/bceef31134bc0a5f9b9e31dbbaee8b76.png\" alt=\"psql-2.png\" title=\"psql-2.png\" width=\"649\" height=\"675\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/bce\/ef3\/113\/bceef31134bc0a5f9b9e31dbbaee8b76.png\"\/><figcaption>psql-2.png<\/figcaption><\/figure>\n<p>&#171;C:\\Program Files\\pgAdmin 4\\v6\\pgAdmin4.ico&#187;<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/643\/a77\/1d2\/643a771d2f517ff1d21e4e7153ab0112.png\" alt=\"psql-3.png\" title=\"psql-3.png\" width=\"1024\" height=\"505\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/643\/a77\/1d2\/643a771d2f517ff1d21e4e7153ab0112.png\"\/><figcaption>psql-3.png<\/figcaption><\/figure>\n<p>\u0412\u0432\u043e\u0434\u0438\u043c \u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u0430 (\u0437\u0430 \u0434\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u043d\u0435\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c).<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/1da\/f78\/568\/1daf78568fcc191e63b0b2c177a5b914.png\" alt=\"psql-4.png\" title=\"psql-4.png\" width=\"1024\" height=\"304\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/1da\/f78\/568\/1daf78568fcc191e63b0b2c177a5b914.png\"\/><figcaption>psql-4.png<\/figcaption><\/figure>\n<p>\u041e\u0442\u043a\u0440\u043e\u0435\u0442\u0441\u044f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u0430\u0437\u0430\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/ad2\/5fd\/ad8\/ad25fdad826f8e46cd7121ac619a2f65.png\" alt=\"psql-1.png\" title=\"psql-1.png\" width=\"1005\" height=\"271\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ad2\/5fd\/ad8\/ad25fdad826f8e46cd7121ac619a2f65.png\"\/><figcaption>psql-1.png<\/figcaption><\/figure>\n<h3>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438<\/h3>\n<p>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438 \u0438\u0437 pgAdmin \u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u044b\u043c bat-\u0444\u0430\u0439\u043b\u043e\u043c.<\/p>\n<h3>2.1. \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e pgAdmin<\/h3>\n<p>\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0431\u0430\u0437\u0443 \u0432 \u0434\u0435\u0440\u0435\u0432\u0435, \u043f\u0440\u0430\u0432\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u043c\u044b\u0448\u0438 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0435 \u043c\u0435\u043d\u044e, \u0433\u0434\u0435 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438\/Backup\u2026 \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u043e\u043b\u043d\u044b\u0439 \u043f\u0443\u0442\u044c \u0434\u043b\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043f\u0438\u0438, \u0444\u043e\u0440\u043c\u0430\u0442 Custom \u0438 \u0436\u043c\u0435\u043c [\u0421\u043e\u0437\u0434\u0430\u0442\u044c \/ Create].<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/9cf\/edb\/69f\/9cfedb69fc4cbd9f228b2692e66a08a6.png\" alt=\"psql-5.png\" title=\"psql-5.png\" width=\"590\" height=\"588\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/9cf\/edb\/69f\/9cfedb69fc4cbd9f228b2692e66a08a6.png\"\/><figcaption>psql-5.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/a61\/ab2\/076\/a61ab20766fab501b0d154e39b61519f.png\" alt=\"psql-6.png\" title=\"psql-6.png\" width=\"702\" height=\"546\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a61\/ab2\/076\/a61ab20766fab501b0d154e39b61519f.png\"\/><figcaption>psql-6.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/cd0\/e6e\/c48\/cd0e6ec486387b85a91da8565cd3a4e8.png\" alt=\"psql-7.png\" title=\"psql-7.png\" width=\"701\" height=\"549\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/cd0\/e6e\/c48\/cd0e6ec486387b85a91da8565cd3a4e8.png\"\/><figcaption>psql-7.png<\/figcaption><\/figure>\n<h3>2.2. \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 *.bat<\/h3>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0434\u0432\u043e\u0439\u043d\u044b\u043c \u043a\u043b\u0438\u043a\u043e\u043c \u043c\u044b\u0448\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u044b\u0439 \u0444\u0430\u0439\u043b backup_pdadmin_UH_IMD_everyday.bat, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0443\u0436\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d \u0432\u044b\u0437\u043e\u0432 \u0430\u0440\u0445\u0438\u0432\u0430\u0442\u043e\u0440\u0430 \u0444\u043e\u0440\u043c\u0430\u0442 \u0438 \u043f\u0443\u0442\u044c \u0444\u0430\u0439\u043b\u0430 \u043a\u043e\u043f\u0438\u0438.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/ac0\/716\/bb8\/ac0716bb8a3a4bbb84c13e54e95a3c16.png\" alt=\"psql-8.png\" title=\"psql-8.png\" width=\"999\" height=\"430\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ac0\/716\/bb8\/ac0716bb8a3a4bbb84c13e54e95a3c16.png\"\/><figcaption>psql-8.png<\/figcaption><\/figure>\n<p>\u041a\u043e\u043f\u0438\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044e\u0442\u0441\u044f \u0441\u044e\u0434\u0430.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c00\/541\/2a3\/c005412a392306e45a43c9ae203a8ee1.png\" alt=\"psql-9.png\" title=\"psql-9.png\" width=\"911\" height=\"235\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c00\/541\/2a3\/c005412a392306e45a43c9ae203a8ee1.png\"\/><figcaption>psql-9.png<\/figcaption><\/figure>\n<p><strong>\u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430:<\/strong><\/p>\n<p><strong>REM \u0421\u041e\u0417\u0414\u0410\u041d\u0418\u042f \u0420\u0415\u0417\u0415\u0420\u0412\u041d\u041e\u0419 \u041a\u041e\u041f\u0418\u0418 \u0411\u0410\u0417\u042b \u0414\u0410\u041d\u041d\u042b\u0425 POSTGRESQL<\/strong><\/p>\n<p>CLS<\/p>\n<p>ECHO OFF<\/p>\n<p>CHCP 1251<\/p>\n<p><strong>REM \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f<\/strong><\/p>\n<p>SET PGDATABASE=IMD_UH<\/p>\n<p>SET PGHOST=localhost<\/p>\n<p>SET PGPORT=5432<\/p>\n<p>SET PGUSER=postgres<\/p>\n<p>SET PGPASSWORD=\u0417\u0414\u0415\u0421\u042c_\u0423\u041a\u0410\u0416\u0418\u0422\u0415_\u041f\u0410\u0420\u041e\u041b\u042c_\u0434\u043b\u044f_\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f_postgres<\/p>\n<p><strong>REM \u0424\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u043c\u0435\u043d\u0438 \u0444\u0430\u0439\u043b\u0430 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438 \u0438 \u0444\u0430\u0439\u043b\u0430-\u043e\u0442\u0447\u0435\u0442\u0430<\/strong><\/p>\n<p>SET DATETIME=%DATE:~6,4%-%DATE:~3,2%-%DATE:~0,2% %TIME:~0,2%-%TIME:~3,2%-%TIME:~6,2%<\/p>\n<p>SET DUMPFILE=%PGDATABASE% %DATETIME%.backup<\/p>\n<p>SET LOGFILE=%PGDATABASE% %DATETIME%.log<\/p>\n<p>SET DUMPPATH=&#187;E:\\UH_IMD\\Backup\\%DUMPFILE%&#187;<\/p>\n<p>SET LOGPATH=&#187;E:\\UH_IMD\\Backup\\%LOGFILE%&#187;<\/p>\n<p><strong>REM \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438<\/strong><\/p>\n<p>IF NOT EXIST Backup MD Backup<\/p>\n<p>CALL &#171;C:\\Program Files\\pgAdmin 4\\v6\\runtime\\pg_dump.exe&#187; &#8212;format=custom &#8212;verbose &#8212;file=%DUMPPATH% 2>%LOGPATH%<\/p>\n<p><strong>REM \u0410\u043d\u0430\u043b\u0438\u0437 \u043a\u043e\u0434\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f<\/strong><\/p>\n<p>IF NOT %ERRORLEVEL%==0 GOTO Error<\/p>\n<p>GOTO Successfull<\/p>\n<p><strong>REM \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0443\u0434\u0430\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0432\u0440\u0435\u0436\u0434\u0435\u043d\u043d\u0430\u044f \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u0430\u044f \u043a\u043e\u043f\u0438\u044f \u0438 \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u0436\u0443\u0440\u043d\u0430\u043b\u0435<\/strong><\/p>\n<p>:Error<\/p>\n<p>DEL %DUMPPATH%<\/p>\n<p>MSG * &#171;ERROR to create backup!!! See the information\u00a0E:\\UH_IMD\\Backup\\backup.log.&#187;<\/p>\n<p>ECHO %DATETIME% \u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438 %DUMPFILE%. \u0421\u043c\u043e\u0442\u0440\u0438\u0442\u0435 %LOGFILE%. >> backup.log<\/p>\n<p>GOTO End<\/p>\n<p><strong>REM \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0443\u0434\u0430\u0447\u043d\u043e\u0433\u043e \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u0436\u0443\u0440\u043d\u0430\u043b<\/strong><\/p>\n<p>:Successfull<\/p>\n<p>ECHO %DATETIME% \u0423\u0441\u043f\u0435\u0448\u043d\u043e\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438 %DUMPFILE% >> backup.log<\/p>\n<p>GOTO End<\/p>\n<p>:End<\/p>\n<p><strong>\u041f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u044f:<\/strong><\/p>\n<p>SET PGDATABASE=IMD_UH\u00a0&#8212; \u0437\u0434\u0435\u0441\u044c \u0438\u043c\u044f \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u0421\u0423\u0411\u0414 \u0440\u0430\u0432\u043d\u043e IMD_UH, \u0443 \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0441\u0432\u043e\u0435 \u043f\u043e\u043c\u0435\u043d\u044f\u0439\u0442\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e.<\/p>\n<p>E:\\UH_IMD\\Backup &#8212; \u0437\u0434\u0435\u0441\u044c \u043f\u0443\u0442\u044c \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f backup \u0443 \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0441\u0432\u043e\u0439, \u043f\u043e\u043c\u0435\u043d\u044f\u0439\u0442\u0435.<\/p>\n<p>C:\\Program Files\\pgAdmin 4\\v6\\runtime &#8212; \u043f\u0430\u043f\u043a\u0430 \u0443\u0442\u0438\u043b\u0438\u0442\u044b pg_dump.exe\u00a0\u0434\u043b\u044f\u00a0\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0434\u0430\u043c\u043f\u043e\u0432, \u043f\u0443\u0441\u0442\u044c \u043c\u043e\u0436\u0435\u0442 \u0447\u0443\u0442\u044c \u043e\u0442\u043b\u0438\u0447\u0430\u0442\u044c\u0441\u044f, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432\u043c\u0435\u0441\u0442\u043e v6 \u0431\u0443\u0434\u0435\u0442 v4. \u0418 \u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 pgAdmin \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c, \u043e\u043d \u0441\u0442\u0430\u0432\u0438\u0442\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e.<\/p>\n<p>SET PGPASSWORD=\u0417\u0414\u0415\u0421\u042c_\u0423\u041a\u0410\u0416\u0418\u0422\u0415_\u041f\u0410\u0420\u041e\u041b\u042c_\u0434\u043b\u044f_\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f_postgres\u00a0&#8212; \u0442\u0443\u0442 \u0443\u043a\u0430\u0436\u0438\u0442\u0435 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u043e\u043b\u044c \u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u00a0postgres\u00a0\u0421\u0423\u0411\u0414 PostgreSQL<\/p>\n<h3>\u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438<\/h3>\n<p>\u0415\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432: \u0418\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438, \u0438\u0437 pgAdmin, \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u044b\u043c \u0444\u0430\u0439\u043b\u043e\u043c. \u041c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c: pgAdmin.<\/p>\n<h3>3.1. \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e pgAdmin<\/h3>\n<h3>3.1.1. \u0412 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0443\u044e \u0431\u0430\u0437\u0443<\/h3>\n<p>\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0431\u0430\u0437\u0443, \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u0435\u0435 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0435 \u043c\u0435\u043d\u044e, \u0433\u0434\u0435 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \/ Restore.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/607\/d9d\/d45\/607d9dd458d649e28f816acb8996fb8c.png\" alt=\"psql-10.png\" title=\"psql-10.png\" width=\"536\" height=\"602\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/607\/d9d\/d45\/607d9dd458d649e28f816acb8996fb8c.png\"\/><figcaption>psql-10.png<\/figcaption><\/figure>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u0443\u0442\u044c \u043a \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438, \u0438 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0441\u0442\u0430\u0432\u0438\u043c \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0447\u0438\u0449\u0430\u0442\u044c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0443\u044e \u0431\u0430\u0437\u0443 (\u0438\u043d\u0430\u0447\u0435 \u043e\u043d\u0430 \u043d\u0435 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0438\u0437-\u0437\u0430 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u0430 \u0442\u0430\u0431\u043b\u0438\u0446).<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/f45\/24b\/625\/f4524b62552c9e04ef714818d20a9f4f.png\" alt=\"psql-11.png\" title=\"psql-11.png\" width=\"698\" height=\"432\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f45\/24b\/625\/f4524b62552c9e04ef714818d20a9f4f.png\"\/><figcaption>psql-11.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/d52\/91e\/abf\/d5291eabfa2301340dca55240cc5acee.png\" alt=\"psql-12.png\" title=\"psql-12.png\" width=\"697\" height=\"546\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d52\/91e\/abf\/d5291eabfa2301340dca55240cc5acee.png\"\/><figcaption>psql-12.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/d73\/d65\/7bf\/d73d657bf0e7f4bc11da030e86094809.png\" alt=\"psql-13.png\" title=\"psql-13.png\" width=\"699\" height=\"432\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d73\/d65\/7bf\/d73d657bf0e7f4bc11da030e86094809.png\"\/><figcaption>psql-13.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e59\/4a5\/e2e\/e594a5e2e3228eb7b8c4c07e5f14f47c.png\" alt=\"ps-14.png\" title=\"ps-14.png\" width=\"705\" height=\"433\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e59\/4a5\/e2e\/e594a5e2e3228eb7b8c4c07e5f14f47c.png\"\/><figcaption>ps-14.png<\/figcaption><\/figure>\n<h3>3.1.2. \u0412 \u043d\u043e\u0432\u0443\u044e \u0431\u0430\u0437\u0443<\/h3>\n<h3>3.1.2.1. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u043e\u0432\u0443\u044e \u0431\u0430\u0437\u0443 \u0432 PostgreSQL<\/h3>\n<p>\u041d\u0430 \u043a\u043e\u0440\u043d\u0435 \u0434\u0435\u0440\u0435\u0432\u0430 \u0431\u0430\u0437 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u043c\u044b\u0448\u0438 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0435 \u043c\u0435\u043d\u044e \u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0421\u043e\u0437\u0434\u0430\u0442\u044c \/ Create \u2013 \u0411\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \/ Database.<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/151\/6c6\/992\/1516c6992a41c839fb7ca037deb680c1.png\" alt=\"psql-14.png\" title=\"psql-14.png\" width=\"490\" height=\"253\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/151\/6c6\/992\/1516c6992a41c839fb7ca037deb680c1.png\"\/><figcaption>psql-14.png<\/figcaption><\/figure>\n<p>\u0417\u0430\u0434\u0430\u0435\u043c \u0438\u043c\u044f \u043d\u043e\u0432\u043e\u0439 \u0431\u0430\u0437\u044b.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/4d9\/a62\/58d\/4d9a6258d2139f34dadcec55837b8f88.png\" alt=\"psql-16.png\" title=\"psql-16.png\" width=\"701\" height=\"548\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4d9\/a62\/58d\/4d9a6258d2139f34dadcec55837b8f88.png\"\/><figcaption>psql-16.png<\/figcaption><\/figure>\n<p>\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u0445\u0435\u043c\u0443 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f template0 (\u0438\u043d\u0430\u0447\u0435 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0448\u0430\u0433\u0435 \u0431\u0430\u0437\u0430 \u043d\u0435 \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0435\u0442\u0441\u044f \u0438\u0437 backup \u0438\u0437-\u0437\u0430 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u0430 \u0442\u0430\u0431\u043b\u0438\u0446).<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/81e\/31a\/cff\/81e31acff6af065a9a7253ade2507a7c.png\" alt=\"psql-16.png\" title=\"psql-16.png\" width=\"701\" height=\"548\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/81e\/31a\/cff\/81e31acff6af065a9a7253ade2507a7c.png\"\/><figcaption>psql-16.png<\/figcaption><\/figure>\n<p>\u0414\u043b\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0438\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441, \u0438 \u0436\u043c\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443 [\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c]\/[Save].<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/068\/f95\/bb3\/068f95bb38717cdb08627c565cd3e040.png\" alt=\"psql-17.png\" title=\"psql-17.png\" width=\"701\" height=\"550\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/068\/f95\/bb3\/068f95bb38717cdb08627c565cd3e040.png\"\/><figcaption>psql-17.png<\/figcaption><\/figure>\n<h3>3.1.2.2. \u0412\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0431\u0430\u0437\u0443 \u0438\u0437 \u0430\u0440\u0445\u0438\u0432\u0430 \u0432 PostgreSQL<\/h3>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0443\u0441\u0442\u043e\u0439 \u043d\u043e\u0432\u043e\u0439 \u0431\u0430\u0437\u044b, \u0435\u0451 \u043d\u0443\u0436\u043d\u043e \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0438\u0437 \u0430\u0440\u0445\u0438\u0432\u0430. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043f\u0443\u043d\u043a\u0442 \u0432\u044b\u0448\u0435 3.1.1. \u0414\u043b\u044f \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0432 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0443\u044e \u0431\u0430\u0437\u0443, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0432\u0441\u0451 \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0431\u0430\u0437\u044b \u0441 \u0438\u043c\u0435\u043d\u0435\u043c NewBaseName<\/p>\n<h3>3.1.2.3. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u043e\u0432\u0443\u044e \u0431\u0430\u0437\u0443 1\u0421 NewBaseName<\/h3>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u043b\u0438 \u0431\u0430\u0437\u0443 \u043d\u0430 \u0421\u0423\u0411\u0414 PostgreSQL \u0435\u0451 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 1\u0421, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u043a \u043d\u0435\u0439 \u0434\u043e\u0441\u0442\u0443\u043f. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043f\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u0431\u0430\u0437\u044b 1\u0421 \u0438 \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u043d\u0438\u0438 \u0435\u0451 \u0441 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u0431\u0430\u0437\u043e\u0439 \u043d\u0430 \u0421\u0423\u0411\u0414.<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/3b6\/b47\/4cd\/3b6b474cdc7c073ec2a6fdd336183998.png\" alt=\"psql-18.png\" title=\"psql-18.png\" width=\"488\" height=\"384\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/3b6\/b47\/4cd\/3b6b474cdc7c073ec2a6fdd336183998.png\"\/><figcaption>psql-18.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e57\/8cf\/652\/e578cf652a99fc13eeb146d670dd7ad3.png\" alt=\"psql-19.png\" title=\"psql-19.png\" width=\"448\" height=\"456\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e57\/8cf\/652\/e578cf652a99fc13eeb146d670dd7ad3.png\"\/><figcaption>psql-19.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/893\/598\/6bd\/8935986bdc9b93898fc182b3525a20f7.png\" alt=\"psql-20.png\" title=\"psql-20.png\" width=\"448\" height=\"455\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/893\/598\/6bd\/8935986bdc9b93898fc182b3525a20f7.png\"\/><figcaption>psql-20.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/15c\/7d5\/8e4\/15c7d58e4d2ba42b2c3e4213e7b2e25b.png\" alt=\"psql-21.png\" title=\"psql-21.png\" width=\"448\" height=\"457\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/15c\/7d5\/8e4\/15c7d58e4d2ba42b2c3e4213e7b2e25b.png\"\/><figcaption>psql-21.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/92f\/db7\/03b\/92fdb703be31b14abe53317bfe20f39e.png\" alt=\"psql-22.png\" title=\"psql-22.png\" width=\"448\" height=\"454\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/92f\/db7\/03b\/92fdb703be31b14abe53317bfe20f39e.png\"\/><figcaption>psql-22.png<\/figcaption><\/figure>\n<p>\u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u0441\u0442\u0430\u0432\u044c \u0444\u043b\u0430\u0433 \u00ab\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0443 \u0440\u0435\u0433\u043b\u0430\u043c\u0435\u043d\u0442\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u043d\u0438\u0439\u00bb, \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u043a\u043e\u043f\u0438\u044f.<\/p>\n<h3>\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0440\u044b\u0445 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0445 \u043a\u043e\u043f\u0438\u0439<\/h3>\n<h3>4.1. \u0412\u0440\u0443\u0447\u043d\u0443\u044e<\/h3>\n<p>\u0423\u0434\u0430\u043b\u044f\u0435\u043c \u0430\u0440\u0445\u0438\u0432\u044b \u0441\u0442\u0430\u0440\u0448\u0435 30 \u0434\u043d\u0435\u0439 \u0432\u0440\u0443\u0447\u043d\u0443\u044e. \u0417\u0430\u0442\u0435\u043c \u0447\u0438\u0441\u0442\u0438\u043c \u043a\u043e\u0440\u0437\u0438\u043d\u0443 \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u0441\u0442\u043e\u043b\u0435.<\/p>\n<p>\u0412 \u043f\u0440\u043e\u0432\u043e\u0434\u043d\u0438\u043a\u0435 \u043f\u0430\u043f\u043a\u0430 E:\\UH_IMD\\Backup.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c67\/6e3\/c93\/c676e3c93db9419ba12ba07d85fb9ef0.png\" alt=\"psql-23.png\" title=\"psql-23.png\" width=\"844\" height=\"204\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c67\/6e3\/c93\/c676e3c93db9419ba12ba07d85fb9ef0.png\"\/><figcaption>psql-23.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/425\/bce\/f5b\/425bcef5b3b5c74cfe0df4a6013dc6d4.png\" alt=\"psql-24.png\" title=\"psql-24.png\" width=\"429\" height=\"212\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/425\/bce\/f5b\/425bcef5b3b5c74cfe0df4a6013dc6d4.png\"\/><figcaption>psql-24.png<\/figcaption><\/figure>\n<h3>4.2. \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 *.bat<\/h3>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0434\u0432\u043e\u0439\u043d\u044b\u043c \u0449\u0435\u043b\u0447\u043a\u043e\u043c \u043c\u044b\u0448\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u044b\u0439 \u0444\u0430\u0439\u043b. \u0412 \u0444\u0430\u0439\u043b\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u0430 \u043e\u0447\u0438\u0441\u0442\u043a\u0430 \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 \u0444\u0430\u0439\u043b\u043e\u0432 \u0441\u0442\u0430\u0440\u0448\u0435 30 \u0434\u043d\u0435\u0439.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/2cc\/0ae\/5cc\/2cc0ae5cc109102699441f59ca97e83b.png\" alt=\"psql-25.png\" title=\"psql-25.png\" width=\"1023\" height=\"303\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/2cc\/0ae\/5cc\/2cc0ae5cc109102699441f59ca97e83b.png\"\/><figcaption>psql-25.png<\/figcaption><\/figure>\n<p><strong>\u0415\u0433\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435:<\/strong><\/p>\n<p>forfiles \/p &#171;E:\\UH_IMD\\Backup&#187; \/S \/D -30\u00a0\/C &#171;cmd \/c del \/f \/a \/q @file&#187;<\/p>\n<p><strong>\u041f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u044f:<\/strong><\/p>\n<p>E:\\UH_IMD\\Backup\u00a0&#8212; \u0437\u0434\u0435\u0441\u044c \u043f\u0443\u0442\u044c \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f backup&#8217;\u043e\u0432, \u0443 \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0441\u0432\u043e\u0435 \u043f\u043e\u043c\u0435\u043d\u044f\u0439\u0442\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e.<\/p>\n<p>30 &#8212; \u0441\u0440\u043e\u043a \u0432 \u0434\u043d\u044f\u0445 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f backup&#8217;\u043e\u0432<\/p>\n<h3>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/h3>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a \u0437\u0430\u0434\u0430\u043d\u0438\u0439 Windows \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0435\u043d\u044c \u0432 5:00 \u0443\u0442\u0440\u0430 \u0437\u0430\u043f\u0443\u0441\u043a, \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 (\u0430\u0440\u0445\u0438\u0432 \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u0431\u0430\u0437\u044b \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e 1 \u0447\u0430\u0441 \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f).<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/35d\/ad2\/f83\/35dad2f83c6dfa7724ed5a5f4b97a468.png\" alt=\"psql-25.png\" title=\"psql-25.png\" width=\"1023\" height=\"303\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/35d\/ad2\/f83\/35dad2f83c6dfa7724ed5a5f4b97a468.png\"\/><figcaption>psql-25.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/7d3\/f48\/0da\/7d3f480da9b26525694c475d8907672d.png\" alt=\"psql-26.png\" title=\"psql-26.png\" width=\"1024\" height=\"208\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7d3\/f48\/0da\/7d3f480da9b26525694c475d8907672d.png\"\/><figcaption>psql-26.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/7ac\/16b\/dbf\/7ac16bdbf3cb724a71bd42ab71dfcc89.png\" alt=\"psql-27.png\" title=\"psql-27.png\" width=\"629\" height=\"478\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7ac\/16b\/dbf\/7ac16bdbf3cb724a71bd42ab71dfcc89.png\"\/><figcaption>psql-27.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/ae0\/9f8\/37f\/ae09f837f83736913bb95b0332e087d7.png\" alt=\"psql-28.png\" title=\"psql-28.png\" width=\"1006\" height=\"671\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ae0\/9f8\/37f\/ae09f837f83736913bb95b0332e087d7.png\"\/><figcaption>psql-28.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/7a8\/9d8\/68b\/7a89d868b7cbb62f2692576c94a6e42b.png\" alt=\"psql-29.png\" title=\"psql-29.png\" width=\"1024\" height=\"469\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7a8\/9d8\/68b\/7a89d868b7cbb62f2692576c94a6e42b.png\"\/><figcaption>psql-29.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/bf7\/1b2\/8be\/bf71b28be7bfddcf80df5db34e787a5f.png\" alt=\"psql-30.png\" title=\"psql-30.png\" width=\"629\" height=\"478\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/bf7\/1b2\/8be\/bf71b28be7bfddcf80df5db34e787a5f.png\"\/><figcaption>psql-30.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/da5\/654\/d7c\/da5654d7c407f9f447a4f49604495cb0.png\" alt=\"psql-31.png\" title=\"psql-31.png\" width=\"628\" height=\"478\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/da5\/654\/d7c\/da5654d7c407f9f447a4f49604495cb0.png\"\/><figcaption>psql-31.png<\/figcaption><\/figure>\n<h3>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u043a\u043e\u043f\u0438\u0439 \u0441\u0442\u0430\u0440\u0448\u0435 30 \u0434\u043d\u0435\u0439<\/h3>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a \u0437\u0430\u0434\u0430\u043d\u0438\u0439 Windows \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u0443\u0431\u0431\u043e\u0442\u0443 \u0432 10:00 \u0443\u0442\u0440\u0430 \u0437\u0430\u043f\u0443\u0441\u043a, \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/68f\/449\/009\/68f449009ac10ae81f3d6610afdb569e.png\" alt=\"psql-32.png\" title=\"psql-32.png\" width=\"1024\" height=\"318\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/68f\/449\/009\/68f449009ac10ae81f3d6610afdb569e.png\"\/><figcaption>psql-32.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/a40\/afc\/d92\/a40afcd92e3ff0201d572534077a0462.png\" alt=\"psql-33.png\" title=\"psql-33.png\" width=\"1024\" height=\"251\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a40\/afc\/d92\/a40afcd92e3ff0201d572534077a0462.png\"\/><figcaption>psql-33.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/1b0\/ab5\/fc5\/1b0ab5fc5884c649bac0a3f3bd85e60f.png\" alt=\"psql-34.png\" title=\"psql-34.png\" width=\"630\" height=\"476\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/1b0\/ab5\/fc5\/1b0ab5fc5884c649bac0a3f3bd85e60f.png\"\/><figcaption>psql-34.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/649\/b24\/271\/649b2427162ec89a78c5037e68917e55.png\" alt=\"psql-35.png\" title=\"psql-35.png\" width=\"1024\" height=\"390\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/649\/b24\/271\/649b2427162ec89a78c5037e68917e55.png\"\/><figcaption>psql-35.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/080\/cbb\/105\/080cbb105a1f97f24f36a1df255f34fd.png\" alt=\"psql-36.png\" title=\"psql-36.png\" width=\"1024\" height=\"465\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/080\/cbb\/105\/080cbb105a1f97f24f36a1df255f34fd.png\"\/><figcaption>psql-36.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e99\/ea8\/5b5\/e99ea85b52c7abb46b4bf5eabbf01a80.png\" alt=\"psql-37.png\" title=\"psql-37.png\" width=\"632\" height=\"476\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e99\/ea8\/5b5\/e99ea85b52c7abb46b4bf5eabbf01a80.png\"\/><figcaption>psql-37.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b31\/1f2\/3e6\/b311f23e6dddd0e6c9b42ffe46949e4f.png\" alt=\"psql-38.png\" title=\"psql-38.png\" width=\"631\" height=\"476\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b31\/1f2\/3e6\/b311f23e6dddd0e6c9b42ffe46949e4f.png\"\/><figcaption>psql-38.png<\/figcaption><\/figure>\n<h3>\u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/h3>\n<h4>\u041f\u0440\u0438\u043c\u0435\u0440 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e \u043e\u0431\u0449\u0435\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u043b\u043e\u0433\u043e\u0432 backup.log.<\/h4>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/43c\/14d\/ccc\/43c14dccc5693c85412676593cc94382.png\" alt=\"psql-39.png\" title=\"psql-39.png\" width=\"767\" height=\"289\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/43c\/14d\/ccc\/43c14dccc5693c85412676593cc94382.png\"\/><figcaption>psql-39.png<\/figcaption><\/figure>\n<h4>\u041f\u0440\u0438\u043c\u0435\u0440 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u043b\u043e\u0433\u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438 UH_IMD 2022-10-07 5-00-00.log<\/h4>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/2ce\/919\/2e3\/2ce9192e3371aba48780b3ce33d81519.png\" alt=\"psql-40.png\" title=\"psql-40.png\" width=\"687\" height=\"502\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/2ce\/919\/2e3\/2ce9192e3371aba48780b3ce33d81519.png\"\/><figcaption>psql-40.png<\/figcaption><\/figure>\n<p>P.S. \u041a\u043e\u043b\u043b\u0435\u0433\u0438, \u0441\u0440\u0430\u0437\u0443 \u0441\u043a\u0430\u0436\u0443, \u0447\u0442\u043e \u044f \u043d\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440, \u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442 1\u0421. \u0421\u0438\u0441\u0442\u0435\u043c\u0449\u0438\u043a \u0440\u0435\u0448\u0438\u043b \u0431\u044b, \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c, \u044d\u043b\u0435\u0433\u0430\u043d\u0442\u043d\u0435\u0435.\u00a0<\/p>\n<p>\u0425\u043e\u0442\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u0441\u043b\u043e\u0436\u0438\u043b\u0430\u0441\u044c \u0442\u0430\u043a\u0430\u044f, \u0447\u0442\u043e \u044f \u0434\u0435\u043b\u0430\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0438 \u044d\u0442\u0443 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e \u0441 bat-\u043d\u0438\u043a\u0430\u043c\u0438 \u043f\u043e \u043f\u0440\u043e\u0441\u044c\u0431\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u043e\u0432 (\u043a\u0430\u043a \u0431\u044b \u0441\u0442\u0440\u0430\u043d\u043d\u043e \u044d\u0442\u043e \u043d\u0438 \u0437\u0432\u0443\u0447\u0430\u043b\u043e). \u041d\u0435\u0447\u0430\u0441\u0442\u043e \u0442\u0430\u043a\u0438\u043c\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0441\u044c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0435 \u0441\u0443\u0434\u0438\u0442\u0435 \u0441\u0442\u0440\u043e\u0433\u043e.\u00a0<\/p>\n<p><strong>\u0414\u043e\u0431\u0430\u0432\u0438\u043b 2 \u0431\u0430\u0442\u043d\u0438\u043a\u0430, \u043f\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044e \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u0438 \u0440\u0435\u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u0438<\/strong>:<\/p>\n<p>\u041e\u043d\u0438 \u0434\u043b\u044f \u0440\u0435\u0433\u043b\u0430\u043c\u0435\u043d\u0442\u043d\u043e\u0433\u043e \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u044f. 1\u0421 \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0442\u044c \u0434\u043b\u044f \u0438\u0445 \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043d\u043e 1\u0421 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u0442\u043e\u0440\u043c\u0430\u0436\u0438\u0432\u0430\u0442\u044c \u0438\u043b\u0438 \u043f\u043e\u0439\u0434\u0435\u0442 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0430 \u043d\u0430 \u043f\u0435\u0440\u0438\u043e\u0434 \u0440\u0435\u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u0438. \u0412 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a \u0437\u0430\u0434\u0430\u043d\u0438\u0439 Windows \u043d\u0430 \u044d\u0442\u0438 \u0431\u0430\u0442\u043d\u0438\u043a\u0438 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u0440\u0430\u0437 \u0432 \u043d\u0435\u0434\u0435\u043b\u044e \u043d\u0430 \u0441\u0432\u043e\u0438 \u0431\u0430\u0437\u044b, \u0432 \u041d\u0435\u0440\u0430\u0431\u043e\u0447\u0435\u0435 \u0432\u0440\u0435\u043c\u044f. \u0422\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u0430\u044f \u0431\u0430\u0437\u0430 postgres \u043d\u0430 \u043d\u0435\u0435 \u0442\u043e\u0436\u0435 \u0440\u0430\u0437 \u0432 \u043d\u0435\u0434\u0435\u043b\u044e \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u0435.<\/p>\n<p><strong>\u0424\u0430\u0439\u043b vacuumdb_BaseName.bat &#8212; \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438.<\/strong><\/p>\n<p><strong>\u0415\u0433\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435:<\/strong><\/p>\n<p><code>vacuumdb\u00a0-d UH_IMD\u00a0-Z -v\u00a0-j 1<\/code><\/p>\n<p><strong>\u041f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u044f:<\/strong><\/p>\n<p>\u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u0431\u0430\u0437\u044b \u0441 \u0438\u043c\u0435\u043d\u0435\u043c UH_IMD (\u0442\u0443\u0442 \u043f\u043e\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0441\u0432\u043e\u044e) \u0432 1 \u043f\u043e\u0442\u043e\u043a.<\/p>\n<p>\u041c\u043e\u0436\u043d\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u043d\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u0432\u043e \u0432\u0441\u0435\u0445 \u0431\u0430\u0437\u0430\u0445 \u0432 4 \u043f\u043e\u0442\u043e\u043a\u0430, \u0442\u043e\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0442\u0435\u043a\u0441\u0442:<\/p>\n<p><code>vacuumdb\u00a0-a\u00a0-Z -v\u00a0-j 4<\/code><\/p>\n<p>\u0424\u0430\u0439\u043b reindexdb_BaseName.bat &#8212; \u0440\u0435\u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u044f \u0442\u0430\u0431\u043b\u0438\u0446 \u0432 \u0431\u0430\u0437\u0435.<\/p>\n<p><strong>\u0415\u0433\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435:<\/strong><\/p>\n<p><code>reindexdb\u00a0-d UH_IMD\u00a0-v\u00a0-j 1<\/code><\/p>\n<p><strong>\u041f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u044f:<\/strong><\/p>\n<p>\u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432 \u0432 \u0431\u0430\u0437\u0435 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c UH_IMD (\u0442\u0443\u0442 \u043f\u043e\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0441\u0432\u043e\u044e) \u0432 1 \u043f\u043e\u0442\u043e\u043a.<\/p>\n<p>\u041c\u043e\u0436\u043d\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u043d\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u0432\u043e \u0432\u0441\u0435\u0445 \u0431\u0430\u0437\u0430\u0445 \u0432 4 \u043f\u043e\u0442\u043e\u043a\u0430, \u0442\u043e\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0442\u0435\u043a\u0441\u0442:<\/p>\n<p><code>reindexdb\u00a0-a\u00a0-v\u00a0-j 4<\/code><\/p>\n<p><strong>\u0422\u0430\u043a\u0436\u0435 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 Effector Saver<\/strong>\u00a0\u2014 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f 1\u0421:\u041f\u0440\u0435\u0434\u043f\u0440\u0438\u044f\u0442\u0438\u044f (\u043f\u043e\u0438\u0449\u0438\u0442\u0435 \u0432 \u0438\u043d\u0435\u0442\u0435).<\/p>\n<p>\u0414\u0435\u043b\u0430\u0435\u0442 \u043a\u043e\u043f\u0438\u0438 \u0432 MS \u0438 PostgreSQL, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f. \u0415\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 1\u0421. \u0415\u0441\u0442\u044c \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f (\u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0434\u043e\u043b\u0436\u043d\u043e \u0445\u0432\u0430\u0442\u0438\u0442\u044c), \u0438 \u0435\u0441\u0442\u044c \u0442\u0430\u043a\u0436\u0435 \u043f\u043b\u0430\u0442\u043d\u0430\u044f \u0441 \u043f\u043b\u044e\u0448\u043a\u0430\u043c\u0438.<\/p>\n<p><strong>\u0418\u0449\u0438\u0442\u0435 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0432\u043e\u0442 \u044d\u0442\u043e\u0442 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u0441 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f\u043c\u0438 \u0434\u043b\u044f \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f:<\/strong><\/p>\n<ul>\n<li>\n<p>backup_pgadmin_BaseName_everyday.bat<\/p>\n<\/li>\n<li>\n<p>delete_backup_BaseName_older than 30 days.bat<\/p>\n<\/li>\n<li>\n<p>\u0420\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0431\u0430\u0437 PostgreSQL \u0432 Windows \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e pgAdmin, bat-\u0444\u0430\u0439\u043b\u043e\u0432 \u0438 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430.docx<\/p>\n<\/li>\n<li>\n<p>vacuumdb_BaseName.bat<\/p>\n<\/li>\n<li>\n<p>reindexdb_BaseName.bat<\/p>\n<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/692454\/\"> https:\/\/habr.com\/ru\/post\/692454\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><figcaption>PostgreSQL<\/figcaption><\/figure>\n<p><strong>\u0410\u0432\u0442\u043e\u0440 \u0441\u0442\u0430\u0442\u044c\u0438:<\/strong>\u00a0\u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u044f 1\u0421:ERP \u0412\u043d\u0435\u0434\u0440\u0435\u043d\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0446\u0435\u043d\u0442\u0440\u0430 \u00ab\u0420\u0430\u0437\u0434\u043e\u043b\u044c\u0435\u00bb \u0414\u043c\u0438\u0442\u0440\u0438\u0439 \u041c\u0430\u043b\u044b\u0448\u0435\u0432.<\/p>\n<h3>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h3>\n<p><strong>pgAdmin<\/strong>\u00a0\u2014 \u044d\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0434\u043b\u044f \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0430\u0437 \u0434\u0430\u043d\u043d\u044b\u0445 PostgreSQL, \u0432 \u043c\u043e\u0451\u043c \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0438 \u044d\u0442\u043e \u0430\u043d\u0430\u043b\u043e\u0433 MS SQL Management Studio. \u0421\u0442\u0430\u0432\u0438\u0442\u0441\u044f pgAdmin \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043e\u0442 PostgreSQL. \u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0430\u0439\u0434\u0438\u0442\u0435, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u0438\u043a\u0430\u0445. \u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0431\u0443\u0434\u0435\u0442 \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u043a\u0430\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e pgAdmin, bat-\u0444\u0430\u0439\u043b\u043e\u0432 \u0438 \u041f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430 \u0437\u0430\u0434\u0430\u043d\u0438\u0439 Windows \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0438 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u043f\u0438\u0439 \u0431\u0430\u0437 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<figure class=\"full-width\"><figcaption>psql-1.png<\/figcaption><\/figure>\n<h3>\u041e\u0442\u043a\u0440\u044b\u0442\u0438\u0435 pgAdmin<\/h3>\n<p>\u0427\u0435\u0440\u0435\u0437 \u043f\u0443\u0441\u043a \u0438\u043b\u0438 \u0432 \u043f\u0440\u043e\u0432\u043e\u0434\u043d\u0438\u043a\u0435 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435.<\/p>\n<figure class=\"full-width\"><figcaption>psql-2.png<\/figcaption><\/figure>\n<p>&#171;C:\\Program Files\\pgAdmin 4\\v6\\pgAdmin4.ico&#187;<\/p>\n<figure class=\"full-width\"><figcaption>psql-3.png<\/figcaption><\/figure>\n<p>\u0412\u0432\u043e\u0434\u0438\u043c \u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u0430 (\u0437\u0430 \u0434\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u043d\u0435\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c).<\/p>\n<figure class=\"full-width\"><figcaption>psql-4.png<\/figcaption><\/figure>\n<p>\u041e\u0442\u043a\u0440\u043e\u0435\u0442\u0441\u044f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u0430\u0437\u0430\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<figure class=\"full-width\"><figcaption>psql-1.png<\/figcaption><\/figure>\n<h3>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438<\/h3>\n<p>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438 \u0438\u0437 pgAdmin \u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u044b\u043c bat-\u0444\u0430\u0439\u043b\u043e\u043c.<\/p>\n<h3>2.1. \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e pgAdmin<\/h3>\n<p>\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0431\u0430\u0437\u0443 \u0432 \u0434\u0435\u0440\u0435\u0432\u0435, \u043f\u0440\u0430\u0432\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u043c\u044b\u0448\u0438 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0435 \u043c\u0435\u043d\u044e, \u0433\u0434\u0435 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438\/Backup\u2026 \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u043e\u043b\u043d\u044b\u0439 \u043f\u0443\u0442\u044c \u0434\u043b\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043f\u0438\u0438, \u0444\u043e\u0440\u043c\u0430\u0442 Custom \u0438 \u0436\u043c\u0435\u043c [\u0421\u043e\u0437\u0434\u0430\u0442\u044c \/ Create].<\/p>\n<figure class=\"full-width\"><figcaption>psql-5.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"full-width\"><figcaption>psql-6.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"full-width\"><figcaption>psql-7.png<\/figcaption><\/figure>\n<h3>2.2. \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 *.bat<\/h3>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0434\u0432\u043e\u0439\u043d\u044b\u043c \u043a\u043b\u0438\u043a\u043e\u043c \u043c\u044b\u0448\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u044b\u0439 \u0444\u0430\u0439\u043b backup_pdadmin_UH_IMD_everyday.bat, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0443\u0436\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d \u0432\u044b\u0437\u043e\u0432 \u0430\u0440\u0445\u0438\u0432\u0430\u0442\u043e\u0440\u0430 \u0444\u043e\u0440\u043c\u0430\u0442 \u0438 \u043f\u0443\u0442\u044c \u0444\u0430\u0439\u043b\u0430 \u043a\u043e\u043f\u0438\u0438.<\/p>\n<figure class=\"full-width\"><figcaption>psql-8.png<\/figcaption><\/figure>\n<p>\u041a\u043e\u043f\u0438\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044e\u0442\u0441\u044f \u0441\u044e\u0434\u0430.<\/p>\n<figure class=\"full-width\"><figcaption>psql-9.png<\/figcaption><\/figure>\n<p><strong>\u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430:<\/strong><\/p>\n<p><strong>REM \u0421\u041e\u0417\u0414\u0410\u041d\u0418\u042f \u0420\u0415\u0417\u0415\u0420\u0412\u041d\u041e\u0419 \u041a\u041e\u041f\u0418\u0418 \u0411\u0410\u0417\u042b \u0414\u0410\u041d\u041d\u042b\u0425 POSTGRESQL<\/strong><\/p>\n<p>CLS<\/p>\n<p>ECHO OFF<\/p>\n<p>CHCP 1251<\/p>\n<p><strong>REM \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f<\/strong><\/p>\n<p>SET PGDATABASE=IMD_UH<\/p>\n<p>SET PGHOST=localhost<\/p>\n<p>SET PGPORT=5432<\/p>\n<p>SET PGUSER=postgres<\/p>\n<p>SET PGPASSWORD=\u0417\u0414\u0415\u0421\u042c_\u0423\u041a\u0410\u0416\u0418\u0422\u0415_\u041f\u0410\u0420\u041e\u041b\u042c_\u0434\u043b\u044f_\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f_postgres<\/p>\n<p><strong>REM \u0424\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u043c\u0435\u043d\u0438 \u0444\u0430\u0439\u043b\u0430 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438 \u0438 \u0444\u0430\u0439\u043b\u0430-\u043e\u0442\u0447\u0435\u0442\u0430<\/strong><\/p>\n<p>SET DATETIME=%DATE:~6,4%-%DATE:~3,2%-%DATE:~0,2% %TIME:~0,2%-%TIME:~3,2%-%TIME:~6,2%<\/p>\n<p>SET DUMPFILE=%PGDATABASE% %DATETIME%.backup<\/p>\n<p>SET LOGFILE=%PGDATABASE% %DATETIME%.log<\/p>\n<p>SET DUMPPATH=&#187;E:\\UH_IMD\\Backup\\%DUMPFILE%&#187;<\/p>\n<p>SET LOGPATH=&#187;E:\\UH_IMD\\Backup\\%LOGFILE%&#187;<\/p>\n<p><strong>REM \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438<\/strong><\/p>\n<p>IF NOT EXIST Backup MD Backup<\/p>\n<p>CALL &#171;C:\\Program Files\\pgAdmin 4\\v6\\runtime\\pg_dump.exe&#187; &#8212;format=custom &#8212;verbose &#8212;file=%DUMPPATH% 2>%LOGPATH%<\/p>\n<p><strong>REM \u0410\u043d\u0430\u043b\u0438\u0437 \u043a\u043e\u0434\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f<\/strong><\/p>\n<p>IF NOT %ERRORLEVEL%==0 GOTO Error<\/p>\n<p>GOTO Successfull<\/p>\n<p><strong>REM \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0443\u0434\u0430\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0432\u0440\u0435\u0436\u0434\u0435\u043d\u043d\u0430\u044f \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u0430\u044f \u043a\u043e\u043f\u0438\u044f \u0438 \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u0436\u0443\u0440\u043d\u0430\u043b\u0435<\/strong><\/p>\n<p>:Error<\/p>\n<p>DEL %DUMPPATH%<\/p>\n<p>MSG * &#171;ERROR to create backup!!! See the information\u00a0E:\\UH_IMD\\Backup\\backup.log.&#187;<\/p>\n<p>ECHO %DATETIME% \u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438 %DUMPFILE%. \u0421\u043c\u043e\u0442\u0440\u0438\u0442\u0435 %LOGFILE%. >> backup.log<\/p>\n<p>GOTO End<\/p>\n<p><strong>REM \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0443\u0434\u0430\u0447\u043d\u043e\u0433\u043e \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u0436\u0443\u0440\u043d\u0430\u043b<\/strong><\/p>\n<p>:Successfull<\/p>\n<p>ECHO %DATETIME% \u0423\u0441\u043f\u0435\u0448\u043d\u043e\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438 %DUMPFILE% >> backup.log<\/p>\n<p>GOTO End<\/p>\n<p>:End<\/p>\n<p><strong>\u041f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u044f:<\/strong><\/p>\n<p>SET PGDATABASE=IMD_UH\u00a0&#8212; \u0437\u0434\u0435\u0441\u044c \u0438\u043c\u044f \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u0421\u0423\u0411\u0414 \u0440\u0430\u0432\u043d\u043e IMD_UH, \u0443 \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0441\u0432\u043e\u0435 \u043f\u043e\u043c\u0435\u043d\u044f\u0439\u0442\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e.<\/p>\n<p>E:\\UH_IMD\\Backup &#8212; \u0437\u0434\u0435\u0441\u044c \u043f\u0443\u0442\u044c \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f backup \u0443 \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0441\u0432\u043e\u0439, \u043f\u043e\u043c\u0435\u043d\u044f\u0439\u0442\u0435.<\/p>\n<p>C:\\Program Files\\pgAdmin 4\\v6\\runtime &#8212; \u043f\u0430\u043f\u043a\u0430 \u0443\u0442\u0438\u043b\u0438\u0442\u044b pg_dump.exe\u00a0\u0434\u043b\u044f\u00a0\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0434\u0430\u043c\u043f\u043e\u0432, \u043f\u0443\u0441\u0442\u044c \u043c\u043e\u0436\u0435\u0442 \u0447\u0443\u0442\u044c \u043e\u0442\u043b\u0438\u0447\u0430\u0442\u044c\u0441\u044f, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432\u043c\u0435\u0441\u0442\u043e v6 \u0431\u0443\u0434\u0435\u0442 v4. \u0418 \u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 pgAdmin \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c, \u043e\u043d \u0441\u0442\u0430\u0432\u0438\u0442\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e.<\/p>\n<p>SET PGPASSWORD=\u0417\u0414\u0415\u0421\u042c_\u0423\u041a\u0410\u0416\u0418\u0422\u0415_\u041f\u0410\u0420\u041e\u041b\u042c_\u0434\u043b\u044f_\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f_postgres\u00a0&#8212; \u0442\u0443\u0442 \u0443\u043a\u0430\u0436\u0438\u0442\u0435 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u043e\u043b\u044c \u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u00a0postgres\u00a0\u0421\u0423\u0411\u0414 PostgreSQL<\/p>\n<h3>\u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438<\/h3>\n<p>\u0415\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432: \u0418\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438, \u0438\u0437 pgAdmin, \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u044b\u043c \u0444\u0430\u0439\u043b\u043e\u043c. \u041c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c: pgAdmin.<\/p>\n<h3>3.1. \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e pgAdmin<\/h3>\n<h3>3.1.1. \u0412 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0443\u044e \u0431\u0430\u0437\u0443<\/h3>\n<p>\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0431\u0430\u0437\u0443, \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u0435\u0435 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0435 \u043c\u0435\u043d\u044e, \u0433\u0434\u0435 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \/ Restore.<\/p>\n<figure class=\"full-width\"><figcaption>psql-10.png<\/figcaption><\/figure>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u0443\u0442\u044c \u043a \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438, \u0438 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0441\u0442\u0430\u0432\u0438\u043c \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0447\u0438\u0449\u0430\u0442\u044c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0443\u044e \u0431\u0430\u0437\u0443 (\u0438\u043d\u0430\u0447\u0435 \u043e\u043d\u0430 \u043d\u0435 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0438\u0437-\u0437\u0430 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u0430 \u0442\u0430\u0431\u043b\u0438\u0446).<\/p>\n<figure class=\"full-width\"><figcaption>psql-11.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"full-width\"><figcaption>psql-12.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"full-width\"><figcaption>psql-13.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"full-width\"><figcaption>ps-14.png<\/figcaption><\/figure>\n<h3>3.1.2. \u0412 \u043d\u043e\u0432\u0443\u044e \u0431\u0430\u0437\u0443<\/h3>\n<h3>3.1.2.1. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u043e\u0432\u0443\u044e \u0431\u0430\u0437\u0443 \u0432 PostgreSQL<\/h3>\n<p>\u041d\u0430 \u043a\u043e\u0440\u043d\u0435 \u0434\u0435\u0440\u0435\u0432\u0430 \u0431\u0430\u0437 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u043c\u044b\u0448\u0438 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0435 \u043c\u0435\u043d\u044e \u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0421\u043e\u0437\u0434\u0430\u0442\u044c \/ Create \u2013 \u0411\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \/ Database.<\/p>\n<figure class=\"\"><figcaption>psql-14.png<\/figcaption><\/figure>\n<p>\u0417\u0430\u0434\u0430\u0435\u043c \u0438\u043c\u044f \u043d\u043e\u0432\u043e\u0439 \u0431\u0430\u0437\u044b.<\/p>\n<figure class=\"full-width\"><figcaption>psql-16.png<\/figcaption><\/figure>\n<p>\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u0445\u0435\u043c\u0443 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f template0 (\u0438\u043d\u0430\u0447\u0435 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0448\u0430\u0433\u0435 \u0431\u0430\u0437\u0430 \u043d\u0435 \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0435\u0442\u0441\u044f \u0438\u0437 backup \u0438\u0437-\u0437\u0430 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u0430 \u0442\u0430\u0431\u043b\u0438\u0446).<\/p>\n<figure class=\"full-width\"><figcaption>psql-16.png<\/figcaption><\/figure>\n<p>\u0414\u043b\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0438\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441, \u0438 \u0436\u043c\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443 [\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c]\/[Save].<\/p>\n<figure class=\"full-width\"><figcaption>psql-17.png<\/figcaption><\/figure>\n<h3>3.1.2.2. \u0412\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0431\u0430\u0437\u0443 \u0438\u0437 \u0430\u0440\u0445\u0438\u0432\u0430 \u0432 PostgreSQL<\/h3>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0443\u0441\u0442\u043e\u0439 \u043d\u043e\u0432\u043e\u0439 \u0431\u0430\u0437\u044b, \u0435\u0451 \u043d\u0443\u0436\u043d\u043e \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0438\u0437 \u0430\u0440\u0445\u0438\u0432\u0430. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043f\u0443\u043d\u043a\u0442 \u0432\u044b\u0448\u0435 3.1.1. \u0414\u043b\u044f \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0432 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0443\u044e \u0431\u0430\u0437\u0443, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0432\u0441\u0451 \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0431\u0430\u0437\u044b \u0441 \u0438\u043c\u0435\u043d\u0435\u043c NewBaseName<\/p>\n<h3>3.1.2.3. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u043e\u0432\u0443\u044e \u0431\u0430\u0437\u0443 1\u0421 NewBaseName<\/h3>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u043b\u0438 \u0431\u0430\u0437\u0443 \u043d\u0430 \u0421\u0423\u0411\u0414 PostgreSQL \u0435\u0451 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 1\u0421, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u043a \u043d\u0435\u0439 \u0434\u043e\u0441\u0442\u0443\u043f. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043f\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u0431\u0430\u0437\u044b 1\u0421 \u0438 \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u043d\u0438\u0438 \u0435\u0451 \u0441 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u0431\u0430\u0437\u043e\u0439 \u043d\u0430 \u0421\u0423\u0411\u0414.<\/p>\n<figure class=\"\"><figcaption>psql-18.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"\"><figcaption>psql-19.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"\"><figcaption>psql-20.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"\"><figcaption>psql-21.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"\"><figcaption>psql-22.png<\/figcaption><\/figure>\n<p>\u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u0441\u0442\u0430\u0432\u044c \u0444\u043b\u0430\u0433 \u00ab\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0443 \u0440\u0435\u0433\u043b\u0430\u043c\u0435\u043d\u0442\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u043d\u0438\u0439\u00bb, \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u043a\u043e\u043f\u0438\u044f.<\/p>\n<h3>\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0440\u044b\u0445 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0445 \u043a\u043e\u043f\u0438\u0439<\/h3>\n<h3>4.1. \u0412\u0440\u0443\u0447\u043d\u0443\u044e<\/h3>\n<p>\u0423\u0434\u0430\u043b\u044f\u0435\u043c \u0430\u0440\u0445\u0438\u0432\u044b \u0441\u0442\u0430\u0440\u0448\u0435 30 \u0434\u043d\u0435\u0439 \u0432\u0440\u0443\u0447\u043d\u0443\u044e. \u0417\u0430\u0442\u0435\u043c \u0447\u0438\u0441\u0442\u0438\u043c \u043a\u043e\u0440\u0437\u0438\u043d\u0443 \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u0441\u0442\u043e\u043b\u0435.<\/p>\n<p>\u0412 \u043f\u0440\u043e\u0432\u043e\u0434\u043d\u0438\u043a\u0435 \u043f\u0430\u043f\u043a\u0430 E:\\UH_IMD\\Backup.<\/p>\n<figure class=\"full-width\"><figcaption>psql-23.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"\"><figcaption>psql-24.png<\/figcaption><\/figure>\n<h3>4.2. \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 *.bat<\/h3>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0434\u0432\u043e\u0439\u043d\u044b\u043c \u0449\u0435\u043b\u0447\u043a\u043e\u043c \u043c\u044b\u0448\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u044b\u0439 \u0444\u0430\u0439\u043b. \u0412 \u0444\u0430\u0439\u043b\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u0430 \u043e\u0447\u0438\u0441\u0442\u043a\u0430 \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 \u0444\u0430\u0439\u043b\u043e\u0432 \u0441\u0442\u0430\u0440\u0448\u0435 30 \u0434\u043d\u0435\u0439.<\/p>\n<figure class=\"full-width\"><figcaption>psql-25.png<\/figcaption><\/figure>\n<p><strong>\u0415\u0433\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435:<\/strong><\/p>\n<p>forfiles \/p &#171;E:\\UH_IMD\\Backup&#187; \/S \/D -30\u00a0\/C &#171;cmd \/c del \/f \/a \/q @file&#187;<\/p>\n<p><strong>\u041f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u044f:<\/strong><\/p>\n<p>E:\\UH_IMD\\Backup\u00a0&#8212; \u0437\u0434\u0435\u0441\u044c \u043f\u0443\u0442\u044c \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f backup&#8217;\u043e\u0432, \u0443 \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0441\u0432\u043e\u0435 \u043f\u043e\u043c\u0435\u043d\u044f\u0439\u0442\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e.<\/p>\n<p>30 &#8212; \u0441\u0440\u043e\u043a \u0432 \u0434\u043d\u044f\u0445 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f backup&#8217;\u043e\u0432<\/p>\n<h3>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/h3>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a \u0437\u0430\u0434\u0430\u043d\u0438\u0439 Windows \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0435\u043d\u044c \u0432 5:00 \u0443\u0442\u0440\u0430 \u0437\u0430\u043f\u0443\u0441\u043a, \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 (\u0430\u0440\u0445\u0438\u0432 \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u0431\u0430\u0437\u044b \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e 1 \u0447\u0430\u0441 \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f).<\/p>\n<figure class=\"full-width\"><figcaption>psql-25.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"full-width\"><figcaption>psql-26.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"full-width\"><figcaption>psql-27.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"full-width\"><figcaption>psql-28.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"full-width\"><figcaption>psql-29.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"full-width\"><figcaption>psql-30.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"full-width\"><figcaption>psql-31.png<\/figcaption><\/figure>\n<h3>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u043a\u043e\u043f\u0438\u0439 \u0441\u0442\u0430\u0440\u0448\u0435 30 \u0434\u043d\u0435\u0439<\/h3>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a \u0437\u0430\u0434\u0430\u043d\u0438\u0439 Windows \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u0443\u0431\u0431\u043e\u0442\u0443 \u0432 10:00 \u0443\u0442\u0440\u0430 \u0437\u0430\u043f\u0443\u0441\u043a, \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430.<\/p>\n<figure class=\"full-width\"><figcaption>psql-32.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"full-width\"><figcaption>psql-33.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"full-width\"><figcaption>psql-34.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"full-width\"><figcaption>psql-35.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"full-width\"><figcaption>psql-36.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"full-width\"><figcaption>psql-37.png<\/figcaption><\/figure>\n<p>***<\/p>\n<figure class=\"full-width\"><figcaption>psql-38.png<\/figcaption><\/figure>\n<h3>\u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/h3>\n<h4>\u041f\u0440\u0438\u043c\u0435\u0440 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e \u043e\u0431\u0449\u0435\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u043b\u043e\u0433\u043e\u0432 backup.log.<\/h4>\n<figure class=\"full-width\"><figcaption>psql-39.png<\/figcaption><\/figure>\n<h4>\u041f\u0440\u0438\u043c\u0435\u0440 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u043b\u043e\u0433\u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438 UH_IMD 2022-10-07 5-00-00.log<\/h4>\n<figure class=\"full-width\"><figcaption>psql-40.png<\/figcaption><\/figure>\n<p>P.S. \u041a\u043e\u043b\u043b\u0435\u0433\u0438, \u0441\u0440\u0430\u0437\u0443 \u0441\u043a\u0430\u0436\u0443, \u0447\u0442\u043e \u044f \u043d\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440, \u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442 1\u0421. \u0421\u0438\u0441\u0442\u0435\u043c\u0449\u0438\u043a \u0440\u0435\u0448\u0438\u043b \u0431\u044b, \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c, \u044d\u043b\u0435\u0433\u0430\u043d\u0442\u043d\u0435\u0435.\u00a0<\/p>\n<p>\u0425\u043e\u0442\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u0441\u043b\u043e\u0436\u0438\u043b\u0430\u0441\u044c \u0442\u0430\u043a\u0430\u044f, \u0447\u0442\u043e \u044f \u0434\u0435\u043b\u0430\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0438 \u044d\u0442\u0443 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e \u0441 bat-\u043d\u0438\u043a\u0430\u043c\u0438 \u043f\u043e \u043f\u0440\u043e\u0441\u044c\u0431\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u043e\u0432 (\u043a\u0430\u043a \u0431\u044b \u0441\u0442\u0440\u0430\u043d\u043d\u043e \u044d\u0442\u043e \u043d\u0438 \u0437\u0432\u0443\u0447\u0430\u043b\u043e). \u041d\u0435\u0447\u0430\u0441\u0442\u043e \u0442\u0430\u043a\u0438\u043c\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0441\u044c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0435 \u0441\u0443\u0434\u0438\u0442\u0435 \u0441\u0442\u0440\u043e\u0433\u043e.\u00a0<\/p>\n<p><strong>\u0414\u043e\u0431\u0430\u0432\u0438\u043b 2 \u0431\u0430\u0442\u043d\u0438\u043a\u0430, \u043f\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044e \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u0438 \u0440\u0435\u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u0438<\/strong>:<\/p>\n<p>\u041e\u043d\u0438 \u0434\u043b\u044f \u0440\u0435\u0433\u043b\u0430\u043c\u0435\u043d\u0442\u043d\u043e\u0433\u043e \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u044f. 1\u0421 \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0442\u044c \u0434\u043b\u044f \u0438\u0445 \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043d\u043e 1\u0421 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u0442\u043e\u0440\u043c\u0430\u0436\u0438\u0432\u0430\u0442\u044c \u0438\u043b\u0438 \u043f\u043e\u0439\u0434\u0435\u0442 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0430 \u043d\u0430 \u043f\u0435\u0440\u0438\u043e\u0434 \u0440\u0435\u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u0438. \u0412 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a \u0437\u0430\u0434\u0430\u043d\u0438\u0439 Windows \u043d\u0430 \u044d\u0442\u0438 \u0431\u0430\u0442\u043d\u0438\u043a\u0438 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u0440\u0430\u0437 \u0432 \u043d\u0435\u0434\u0435\u043b\u044e \u043d\u0430 \u0441\u0432\u043e\u0438 \u0431\u0430\u0437\u044b, \u0432 \u041d\u0435\u0440\u0430\u0431\u043e\u0447\u0435\u0435 \u0432\u0440\u0435\u043c\u044f. \u0422\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u0430\u044f \u0431\u0430\u0437\u0430 postgres \u043d\u0430 \u043d\u0435\u0435 \u0442\u043e\u0436\u0435 \u0440\u0430\u0437 \u0432 \u043d\u0435\u0434\u0435\u043b\u044e \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u0435.<\/p>\n<p><strong>\u0424\u0430\u0439\u043b vacuumdb_BaseName.bat &#8212; \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438.<\/strong><\/p>\n<p><strong>\u0415\u0433\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435:<\/strong><\/p>\n<p><code>vacuumdb\u00a0-d UH_IMD\u00a0-Z -v\u00a0-j 1<\/code><\/p>\n<p><strong>\u041f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u044f:<\/strong><\/p>\n<p>\u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u0431\u0430\u0437\u044b \u0441 \u0438\u043c\u0435\u043d\u0435\u043c UH_IMD (\u0442\u0443\u0442 \u043f\u043e\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0441\u0432\u043e\u044e) \u0432 1 \u043f\u043e\u0442\u043e\u043a.<\/p>\n<p>\u041c\u043e\u0436\u043d\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u043d\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u0432\u043e \u0432\u0441\u0435\u0445 \u0431\u0430\u0437\u0430\u0445 \u0432 4 \u043f\u043e\u0442\u043e\u043a\u0430, \u0442\u043e\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0442\u0435\u043a\u0441\u0442:<\/p>\n<p><code>vacuumdb\u00a0-a\u00a0-Z -v\u00a0-j 4<\/code><\/p>\n<p>\u0424\u0430\u0439\u043b reindexdb_BaseName.bat &#8212; \u0440\u0435\u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u044f \u0442\u0430\u0431\u043b\u0438\u0446 \u0432 \u0431\u0430\u0437\u0435.<\/p>\n<p><strong>\u0415\u0433\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435:<\/strong><\/p>\n<p><code>reindexdb\u00a0-d UH_IMD\u00a0-v\u00a0-j 1<\/code><\/p>\n<p><strong>\u041f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u044f:<\/strong><\/p>\n<p>\u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432 \u0432 \u0431\u0430\u0437\u0435 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c UH_IMD (\u0442\u0443\u0442 \u043f\u043e\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0441\u0432\u043e\u044e) \u0432 1 \u043f\u043e\u0442\u043e\u043a.<\/p>\n<p>\u041c\u043e\u0436\u043d\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u043d\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u0432\u043e \u0432\u0441\u0435\u0445 \u0431\u0430\u0437\u0430\u0445 \u0432 4 \u043f\u043e\u0442\u043e\u043a\u0430, \u0442\u043e\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0442\u0435\u043a\u0441\u0442:<\/p>\n<p><code>reindexdb\u00a0-a\u00a0-v\u00a0-j 4<\/code><\/p>\n<p><strong>\u0422\u0430\u043a\u0436\u0435 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 Effector Saver<\/strong>\u00a0\u2014 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f 1\u0421:\u041f\u0440\u0435\u0434\u043f\u0440\u0438\u044f\u0442\u0438\u044f (\u043f\u043e\u0438\u0449\u0438\u0442\u0435 \u0432 \u0438\u043d\u0435\u0442\u0435).<\/p>\n<p>\u0414\u0435\u043b\u0430\u0435\u0442 \u043a\u043e\u043f\u0438\u0438 \u0432 MS \u0438 PostgreSQL, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f. \u0415\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 1\u0421. \u0415\u0441\u0442\u044c \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f (\u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0434\u043e\u043b\u0436\u043d\u043e \u0445\u0432\u0430\u0442\u0438\u0442\u044c), \u0438 \u0435\u0441\u0442\u044c \u0442\u0430\u043a\u0436\u0435 \u043f\u043b\u0430\u0442\u043d\u0430\u044f \u0441 \u043f\u043b\u044e\u0448\u043a\u0430\u043c\u0438.<\/p>\n<p><strong>\u0418\u0449\u0438\u0442\u0435 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0432\u043e\u0442 \u044d\u0442\u043e\u0442 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u0441 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f\u043c\u0438 \u0434\u043b\u044f \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f:<\/strong><\/p>\n<ul>\n<li>\n<p>backup_pgadmin_BaseName_everyday.bat<\/p>\n<\/li>\n<li>\n<p>delete_backup_BaseName_older than 30 days.bat<\/p>\n<\/li>\n<li>\n<p>\u0420\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0431\u0430\u0437 PostgreSQL \u0432 Windows \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e pgAdmin, bat-\u0444\u0430\u0439\u043b\u043e\u0432 \u0438 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430.docx<\/p>\n<\/li>\n<li>\n<p>vacuumdb_BaseName.bat<\/p>\n<\/li>\n<li>\n<p>reindexdb_BaseName.bat<\/p>\n<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/692454\/\"> https:\/\/habr.com\/ru\/post\/692454\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-339512","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/339512","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=339512"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/339512\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=339512"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=339512"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=339512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}