bem se deletar o restore.conf o banco sob numa boa claro q sem executar o restore mas sobe.... ou seja fazer o backup continuo não é problema mas sim restaura-lo...rs
meus logs são esses: 00000002.history/ 1 000000010000000000000021 no recovery target specified ~ ~ ~ archive_status/ ../ 00000002.history.done 000000020000000000000029.00000020.backup.done ~ 000000020000000000000029.00000020.backup/ START WAL LOCATION: 0/29000020 (file 000000020000000000000029) STOP WAL LOCATION: 0/29000094 (file 000000020000000000000029) CHECKPOINT LOCATION: 0/29000020 START TIME: 2011-09-22 15:12:57 BRT LABEL: brava STOP TIME: 2011-09-22 15:16:38 BRT existem outros mas são log trasacionais ilégivies: ls -la total 131252 drwx------ 3 postgres root 4096 Set 23 07:37 . drwx------ 13 postgres postgres 4096 Set 23 07:23 .. -rw------- 1 postgres postgres 241 Set 22 15:16 000000020000000000000029.00000020.backup -rw------- 1 postgres root 16777216 Set 22 18:03 * 000000020000000000000036* -rw------- 1 postgres root 16777216 Set 22 15:44*000000020000000000000037 * -rw------- 1 postgres root 16777216 Set 22 15:44 * 000000020000000000000038* -rw------- 1 postgres root 16777216 Set 22 15:44 * 000000020000000000000039* -rw------- 1 postgres root 16777216 Set 22 15:45 * 00000002000000000000003A* -rw------- 1 postgres root 16777216 Set 22 15:45 * 00000002000000000000003B* -rw------- 1 postgres root 16777216 Set 22 15:48 * 00000002000000000000003C* -rw------- 1 postgres root 16777216 Set 22 17:37 * 00000002000000000000003D* -rw------- 1 postgres root 56 Set 22 14:11 00000002.history drwx------ 2 postgres root 4096 Set 23 07:35 archive_status bash-3.2$ Valeu Pedro, Em 22 de setembro de 2011 22:05, Flavio Henrique Araque Gurgel < [email protected]> escreveu: > > Olá Pedro, cara é isso mesmo valeu pela dica, mas ainda não consegui > > recuperar o backup, > > depois de ter logs arquivados eu mato o postgres com: > > kill -9 $(head -1 /opt/postgres/9.0/data/postmaster.pid) > > > > Em seguida configuro o recovery.conf com esse parametro: restore_command > = ' > > cp /opt/postgres/9.0/pgbackup/testes_logs/%f %d ' > > quando dou um pg_ctl -D /opt/postgres/9.0/data start da a seguinte > mensagem > > pg_ctl: another server might be running; trying to start server anyway > > server starting > > > > mas na verdade ele não inicia o postgres > > > > essa parte do recovery.conf q ta pegando....como devo configurar ...tem > > algum procedimento faltando... > > > > aqui estão meu meus logs....: > > > > > > Obrigado Pedro.... > > > > ls -la > > total 771008 > > drwxr-xr-x 2 root root 4096 Set 22 16:46 . > > drwxr-xr-x 4 root root 4096 Set 22 16:57 .. > > -rw------- 1 root root 16777216 Set 22 16:46 000000010000000000000025 > > -rw------- 1 root root 16777216 Set 22 16:46 000000010000000000000026 > > -rw------- 1 root root 16777216 Set 22 16:46 000000020000000000000026 > > -rw------- 1 root root 16777216 Set 22 16:46 000000020000000000000027 > > -rw------- 1 root root 243 Set 22 16:46 > > 000000020000000000000027.00000020.backup > > Se o PostgreSQL não iniciou após o pg_ctl, algo foi feito errado no > seu procedimento. > Por favor, mande-nos o que aparece no seu log (log de avisos e erros, > não o diretório de logs de transação arquivados). > > Seu recovery.conf parece correto. > > []s > Flavio Gurgel > _______________________________________________ > pgbr-geral mailing list > [email protected] > https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral > -- -- Hélio José (61) 99840139
_______________________________________________ pgbr-geral mailing list [email protected] https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
