<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forum PostgreSQL - skrypt-przywracanie bazy]]></title>
	<link rel="self" href="http://forum.postgresql.org.pl/extern.php?action=feed&amp;tid=465&amp;type=atom"/>
	<updated>2010-07-20T06:29:33Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.postgresql.org.pl/viewtopic.php?id=465</id>
		<entry>
			<title type="html"><![CDATA[Odp: skrypt-przywracanie bazy]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=2144#p2144"/>
			<content type="html"><![CDATA[Tylko że to są zmienne środowiskowe po stronie klienta więc spokojnie możesz je sobie zdefiniować. Masz jakieś konto ssh na tym kei.pl?]]></content>
			<author>
				<name><![CDATA[rski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=26</uri>
			</author>
			<updated>2010-07-20T06:29:33Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=2144#p2144</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: skrypt-przywracanie bazy]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=2143#p2143"/>
			<content type="html"><![CDATA[mam hosting na kei.pl, raczej nie mam dostępu do takich rzeczy.]]></content>
			<author>
				<name><![CDATA[tryhp3]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=1132</uri>
			</author>
			<updated>2010-07-19T14:22:02Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=2143#p2143</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: skrypt-przywracanie bazy]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=2142#p2142"/>
			<content type="html"><![CDATA[Wcale nie trzeba. Możesz zmienić ustawienia w pg_hba.conf aby nie pytał o hasło (co jest mało bezpieczne), albo możesz ustawić odpowiednie zmienne środowiskowe

[url]http://www.postgresql.org/docs/current/static/libpq-envars.html[/url]

[url]http://www.postgresql.org/docs/current/static/app-pgrestore.html[/url]

W ostateczności możesz jeszcze zdefiniować plik .pgpass
[url]http://www.postgresql.org/docs/current/static/libpq-pgpass.html[/url]]]></content>
			<author>
				<name><![CDATA[rski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=26</uri>
			</author>
			<updated>2010-07-18T08:43:28Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=2142#p2142</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: skrypt-przywracanie bazy]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=2141#p2141"/>
			<content type="html"><![CDATA[no o takie coś mi chodzi, tylko żeby to działało przez Crona trzeba do tego polecenia dodać, hasło i użytkownika]]></content>
			<author>
				<name><![CDATA[tryhp3]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=1132</uri>
			</author>
			<updated>2010-07-17T13:38:29Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=2141#p2141</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: skrypt-przywracanie bazy]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=2140#p2140"/>
			<content type="html"><![CDATA[Czy dump jest zwykłym plikiem z poleceniami SQL?
Jeśli tak to możesz go 'ładować' za pomocą polecenia
[code]
psql nazwa_bazy  < nazwa_dumpa 
[/code]
lub
[code]
psql nazwa_bazy -f nazwa_dumpa
[/code]

Jeśli nie jest plikiem SQL to możesz użyć polecenia pg_restore
[code]
pg_restore -d nazwa_bazy nazwa_dumpa
[/code]]]></content>
			<author>
				<name><![CDATA[rski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=26</uri>
			</author>
			<updated>2010-07-17T05:57:42Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=2140#p2140</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: skrypt-przywracanie bazy]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=2138#p2138"/>
			<content type="html"><![CDATA[nie robiłem przez konsole, tylko przez program pgAdmin]]></content>
			<author>
				<name><![CDATA[tryhp3]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=1132</uri>
			</author>
			<updated>2010-07-16T22:01:40Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=2138#p2138</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: skrypt-przywracanie bazy]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=2136#p2136"/>
			<content type="html"><![CDATA[Musisz napisać :).
Rozumiem że przywracanie ma być z dumpa a jak robisz dumpa, jakim poleceniem?]]></content>
			<author>
				<name><![CDATA[rski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=26</uri>
			</author>
			<updated>2010-07-16T15:26:06Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=2136#p2136</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[skrypt-przywracanie bazy]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=2134#p2134"/>
			<content type="html"><![CDATA[Chcę przy pomocy CRONA przywracać co jakiś czas bazę danych
do tego celu potrzebuje skryptu np w PHP/Python itp. który zrealizuje przywracanie bazy z pliku
gdzie taki skrypt mogę znaleźć?]]></content>
			<author>
				<name><![CDATA[tryhp3]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=1132</uri>
			</author>
			<updated>2010-07-16T11:10:35Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=2134#p2134</id>
		</entry>
</feed>
