Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 582 Bytes

File metadata and controls

15 lines (11 loc) · 582 Bytes

Pull Production DB Custom Command (ddev fetchproductiondb)

  1. Copy the fetchproductiondb command to the .ddev/commands/host/ directory.
  2. adjust $SSH_TARGET and $TARGET_DBNAME in the command
  3. If $SSH_TARGET user on host does not already have permissions on the database, you can put credentials in ~/.my.cnf on the server as shown here:
[client]
user=username
password=password

now you can run ddev fetchproductiondb. You can easily build the same for files using rsync.

Contributed by @kaystrobach