Skip to content

Commit

Permalink
[FEATURE] Add db:push command.
Browse files Browse the repository at this point in the history
  • Loading branch information
kszymukowicz committed Feb 15, 2020
1 parent 3f69149 commit ed08d9a
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ What does it do?
The package provides additional tasks for deployer (deployer.org) for synchronizing databases between instances.
Most useful are two tasks:

1. task "`db:pull`_ [source-instance]" task which allows you to pull database from source instance to current
instance,
1. task "`db:pull`_ [source-instance]" task which allows you to pull database from remote instance to local instance,

2. task "`db:push`_ [target-instance]" task which allows you to push database from local to remote instance,

2. task "`db:copy`_ [source-instance] --options=target:[target-instance]" which allows to copy database between instances.

Expand Down Expand Up @@ -600,6 +601,25 @@ Here is the list of tasks that will be done afer "db:pull":

dep db:pull live


db:push
+++++++

This command allows you to push database from local instance to remote instance.
In the background it runs several other tasks to accomplish this.

Here is the list of tasks that will be done afer "db:pull":

1) First it runs `db:export`_ task on local instance and get the "dumpcode" as return to use it in next commands.
2) Then it runs `db:upload`_ on local instance with remote as argument (with "dumpcode" value from first task).
3) Then it runs `db:process`_ on remote instance (with "dumpcode" value from first task).
4) Then it runs `db:import`_ on remote instance (with "dumpcode" value from first task).

**Example**
::

dep db:push live

db:rmdump
+++++++++

Expand Down

0 comments on commit ed08d9a

Please sign in to comment.