Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added dump support #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

added dump support #33

wants to merge 1 commit into from

Conversation

stefnw
Copy link

@stefnw stefnw commented May 29, 2015

Hi,
often you dont have ssh permissions to the live server. if you want to use the grunt-wordpress-deploy functions (especially the url-rewriting) its necessary to build a local instance of your wordpress installation. So i added the functionality to dump the local instance to another local folder with the given url-rewriting function.

Usage:

grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),

    wordpressdeploy: {
        options: {
            backup_dir: "backups/",
            rsync_args: ['--verbose', '--progress', '-rlpt', '--compress', '--omit-dir-times'],
            exclusions: ['Gruntfile.js', '.git/', 'tmp/*']
        },
        local: {
            "title": "local",
            "database": grunt.option('database'),
            "user": grunt.option('user'),
            "pass": grunt.option('pass'),
            "host": grunt.option('host'),
            "url": grunt.option('local_url'),
            "path": grunt.option('local_path')
        },
        dump: {
            "title": "dump",
            "url": grunt.option('livecopy_url'),
            "path": grunt.option('livecopy_path'),
        }
    }
});

@stefnw
Copy link
Author

stefnw commented May 29, 2015

The SQL Dump is saved within the folder of the dumped wordpress instance and is named "db_dump.sql"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant