Skip to content

Commit

Permalink
docs: update connection.md with transfer database configuration options
Browse files Browse the repository at this point in the history
  • Loading branch information
Kremilly committed Dec 6, 2024
1 parent 75fcc15 commit d4ecd9e
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions docs/connection.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,21 @@
To connect to the database, you need to configure the Environment System in your `.env` file. You should include the following settings:

```dotenv
DB_HOST="YOUR_HOST"
DB_PORT="YOUR_PORT"
DB_USER="YOUR_USERNAME"
DB_PASSWORD="YOUR_PASSWORD"
DB_NAME="YOUR_DATABASE"
DB_HOST="YOUR_HOST" # Database host
DB_PORT="YOUR_PORT" # Database port
DB_USER="YOUR_USERNAME" # Database username
DB_PASSWORD="YOUR_PASSWORD" # Database password
DB_NAME="YOUR_DATABASE" # Database name
DS_DUMP_INTERVAL="3600" # Interval for the dump process in seconds
DS_DUMP_PATH="/path/to/" # Path where dumps will be saved
DS_TRANSFER_HOST="YOUR_TRANSFER_HOST" # Transfer database host
DS_TRANSFER_PORT="YOUR_TRANSFER_PORT" # Transfer database port
DS_TRANSFER_USER="YOUR_TRANSFER_USERNAME" # Transfer database username
DS_TRANSFER_PASSWORD="YOUR_TRANSFER_PASSWORD" # Transfer database password
DS_TRANSFER_DB_NAME="YOUR_TRANSFER_DATABASE" # Transfer database name
# OR, alternatively
DS_DB_HOST="YOUR_HOST"
Expand All @@ -33,5 +39,10 @@ DS_DUMP_PATH="/path/to/" # Path where dumps will be saved
- **DB_NAME** / **DS_DB_NAME**: The name of the database you want to connect to.
- **DS_DUMP_INTERVAL**: The interval (in seconds) for the dump process; defaults to 3600 seconds (1 hour).
- **DS_DUMP_PATH**: The directory path where the database dumps will be saved.
- **DS_TRANSFER_HOST**: The hostname or IP address of the transfer database server.
- **DS_TRANSFER_PORT**: The port number on which the transfer database is listening.
- **DS_TRANSFER_USER**: Your transfer database username.
- **DS_TRANSFER_PASSWORD**: The password associated with the transfer database user.
- **DS_TRANSFER_DB_NAME**: The name of the transfer database you want to connect to.

You can choose to use either the `DB_` prefixed variables or the `DS_` prefixed variables for your configuration. Make sure to adjust the values accordingly to fit your environment.

0 comments on commit d4ecd9e

Please sign in to comment.