ich bekomme es nicht hin, eine Tabelle einer Postgresql Datenbank zu exportieren.
Code: Alles auswählen
root@kiste:~$ pg_dump openvpn -t Network > openvpn2.sql
pg_dump: No matching tables were found
Code: Alles auswählen
root@kiste:/$ psql openvpn
psql (9.4.15)
Type "help" for help.
openvpn=# \dt
List of relations
Schema | Name | Type | Owner
--------+-------------------+-------+---------
public | AdditionalOptions | table | openvpn
public | CA | table | openvpn
public | EnabledNetworks | table | openvpn
public | EnabledS7 | table | openvpn
public | Flags | table | openvpn
public | Hosts | table | openvpn
public | Log | table | openvpn
public | Management | table | openvpn
public | Network | table | openvpn
public | Organisations | table | openvpn
public | RemoteNetworks | table | openvpn
public | Rw_Infos | table | openvpn
public | Templates | table | openvpn
public | clients | table | ulogd
public | logins | table | ulogd
public | ulog | table | ulogd
(16 rows)
openvpn=# \l
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
-----------+----------+----------+-------------+-------------+-----------------------
openvpn | openvpn | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
postgres | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
template0 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres +
| | | | | postgres=CTc/postgres
template1 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres +
| | | | | postgres=CTc/postgres
ulogd | ulogd | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
(5 rows)
openvpn=#
Die ganze DB kann ich exportieren, aber das nützt mir nichts.