Skip to content

BKeanu1989/wp-live-to-local

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Semi automation for db imports in Wordpress

This is an semi automation for the tedious task of importing a live database into a local one

Info

The bash script needs execution permissions so give

sudo chmod +x /path/to/live-to-local-db.sh

a go.

The path to mysql is expected under: /Applications/MAMP/Library/bin/mysql If that is not the case for you, change it accordingly.

Warning

This script inlines the password on the shell. You won't see it, but it will be saved in your history.

You could use something like expect to find a workaround.

How to use

Running the script:

/path/to/live-to-local-db.sh

TIPS

  • you might need to flush your rewrite rules after importing the database
    • VIA GUI: dashboard -> settings -> permalinks -> save changes

Releases

No releases published

Packages

No packages published

Languages