Skip to content
This repository has been archived by the owner on Feb 19, 2023. It is now read-only.

Auto DB dump and import to local #15

Open
janithcooray opened this issue Jul 2, 2022 · 3 comments · Fixed by #16
Open

Auto DB dump and import to local #15

janithcooray opened this issue Jul 2, 2022 · 3 comments · Fixed by #16

Comments

@janithcooray
Copy link
Owner

Adding an option to download a DB copy directly from the DB server or import from a SQL dump

database:
  driver: mysql
  profile: staging
  method: [ export | dump ]
  file: [ ./relative | /absolute ]/path/to/dump.sql
  server:
    database_user: 
    database_name:
    database_pass:
    host:
    port: 
  local:
    database_user: 
    database_name:
    database_pass:
    root_password:
    host:
    port: 
@janithcooray
Copy link
Owner Author

@BlazeIsClone what do you think?

@janithcooray janithcooray linked a pull request Jul 2, 2022 that will close this issue
@janithcooray janithcooray reopened this Jul 2, 2022
@BlazeIsClone
Copy link
Contributor

Dev XP +💯

@vimarshacooray
Copy link
Collaborator

Update to usage

database:
  driver: mysql
  method: dump 
  server: 
    database_user: name
    database_name: name
    database_pass: name
    host: 0.0.0.0
    port: 3306
  local: 
    provision: true # will remove tables if they exist
    method: [CLIENT,DOCKER,CLI,SSH]
    container_name: #for Docker method
    ssh_key: /path/to/ssh/file
    database_user: wordpress
    database_name: wordpress
    database_pass: wordpress
    root_password: somewordpress # Required for provision
    host: localhost
    port: 3306

Status Dumps fully work.
Imports are still janky. only CLIENT method works but too slow

@janithcooray janithcooray added this to the Road Map July 2022 milestone Jul 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants