Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iml-backup
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
iml-backup
Commits
3b1a63e7
Commit
3b1a63e7
authored
1 year ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
add example profiles
parent
d2ebb15c
No related branches found
No related tags found
1 merge request
!129
Db Profiles
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
plugins/localdump/profiles/mysql_localhost_docker_13306.ini.example
+40
-0
40 additions, 0 deletions
...caldump/profiles/mysql_localhost_docker_13306.ini.example
plugins/localdump/profiles/pgsql_remote.ini.example
+34
-0
34 additions, 0 deletions
plugins/localdump/profiles/pgsql_remote.ini.example
with
74 additions
and
0 deletions
plugins/localdump/profiles/mysql_localhost_docker_13306.ini.example
0 → 100644
+
40
−
0
View file @
3b1a63e7
# ======================================================================
#
# DOCKER MYSQL INSTANCE ON LOCAL EXPOSED PORT
#
# ======================================================================
[detect]
# ----------------------------------------------------------------------
# what to detect
# ----------------------------------------------------------------------
# a running process that must be found
process = 'mysqld|mariadb'
# a port that must be open on a given host
tcp = 13306
tcp-target = localhost
# process that opens a port (see netstat -tulpen) - works for local services only
# "slirp4netns" is docker network stack
# "rootlesskit" is docker too
tcp-process = 'rootlesskit'
[set]
# ----------------------------------------------------------------------
# data to apply if it was found
# ----------------------------------------------------------------------
su = ''
dbuser = 'root'
dbpassword = '12345678'
# unschön - das ist in der Prozessliste
params = '--port={{tcp}} --password={{dbpassword}} --user={{dbuser}} --host={{tcp-target}}'
# https://dev.mysql.com/doc/refman/8.0/en/environment-variables.html
env = ''
# ----------------------------------------------------------------------
This diff is collapsed.
Click to expand it.
plugins/localdump/profiles/pgsql_remote.ini.example
0 → 100644
+
34
−
0
View file @
3b1a63e7
# ======================================================================
#
# REMOTE PGSQL INSTANCE
# untested yet
#
# ======================================================================
[detect]
process = 'postgres|postmaster'
tcp = 5432
tcp-target = dbserver.example.com
tcp-process = 'postgres|postmaster'
[set]
su = ''
dbuser = 'mydbuser'
dbpassword = 'mypassword'
params = '--host= {{tcp-target}} --port={tcp}} --username={{dbuser}}'
env = 'PGPASSWORD={{dbpassword}}'
# https://www.postgresql.org/docs/current/libpq-envars.html
# from pgsql help:
; Connection options:
; -h, --host=HOSTNAME database server host or socket directory (default: "/var/run/postgresql")
; -p, --port=PORT database server port (default: "5432")
; -U, --username=USERNAME database user name (default: "postgres")
; -w, --no-password never prompt for password
; -W, --password force password prompt (should happen automatically)
# ----------------------------------------------------------------------
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment