Re: Automatic backup in windows
От | Ron |
---|---|
Тема | Re: Automatic backup in windows |
Дата | |
Msg-id | 9e132212-cb7e-304f-9319-9a93e538321b@gmail.com обсуждение исходный текст |
Ответ на | Automatic backup in windows (obi reddy <obireddy.g1997@gmail.com>) |
Список | pgsql-general |
What happened when you ran that script?
On 8/2/21 1:52 AM, obi reddy wrote:
Hello everyone, I want to schedule the automatic backup in windows postgresql platform.I have attached the script, if any changes is required please correct and send back. This is my humble request.Actually I don't know to write the windows script. Otherwise if incase any have the script please send me .Db name:rathi26Backup file path:C:\Users\gangireddyobiredy\Desktop\case.sqlThank you And RegardsObireddy. G@echo offSET day=%date:~0,2%SET month=%date:~7,8%SET year=%date:~6,4%SET hh=%time:~0,2%SET mm=%time:~3,2%SET BACKUPDIR=C:\users_BackupSET datestr=%day%-%month%-%year%_%hh%-%mm%SET dir=%day%-%month%-%year%mkdir C:\users_Backup%dir%#Provide database name hereSET db1=dbname1echo datestr is %datestr%SET BACKUP_rathi26=C:\Users\gangireddyobiredy\Desktop\case.sqllSET rathi26=%db1%%datestr%.sqlECHO Backup file name is %rathi26%SET PGPASSWORD=echo on#Execute Backup for databaseC:\Program Files\PostgreSQL\13\bin>pg_dump.exe -p 5432 -U postgres -v -d rathi26 > C:\Users\gangireddyobiredy\Desktop\case.sqlecho Backup Completed
--
Angular momentum makes the world go 'round.
Angular momentum makes the world go 'round.
В списке pgsql-general по дате отправления: