mirror of
https://github.com/infra7ti/dbtool.git
synced 2025-12-05 23:02:37 -03:00
Initial commit
This commit is contained in:
3
examples/databases/dblist.txt
Normal file
3
examples/databases/dblist.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
database1
|
||||
database2
|
||||
database3
|
||||
27
examples/hosts/db.example.org.ini
Normal file
27
examples/hosts/db.example.org.ini
Normal file
@@ -0,0 +1,27 @@
|
||||
[engines]
|
||||
mysql=false
|
||||
postgresql=true
|
||||
|
||||
[postgresql]
|
||||
env=prod
|
||||
db_host=db.example.org
|
||||
db_password=P4SsW0rd.
|
||||
db_port=6432
|
||||
db_user=dbuser
|
||||
|
||||
[psql]
|
||||
exec = /usr/bin/psql
|
||||
extraopts =
|
||||
extension = sql
|
||||
|
||||
[pg_dump]
|
||||
dump_format = custom
|
||||
exec = /usr/bin/pg_dump
|
||||
extraopts = "-b --exclude-table-data=logs_logs --exclude-table-data=logs_detalhe --exclude-table-data=ecf_exportar_osv_id_seq"
|
||||
extension = pgc
|
||||
|
||||
[pg_restore]
|
||||
restore_format = custom
|
||||
exec = /usr/bin/pg_restore
|
||||
extraopts = "--role dbuser"
|
||||
extension = pgc
|
||||
Reference in New Issue
Block a user