Skip to content

Escape single-quotes with genesis:db:up #110

Closed

Description

@ericclemmons

The double-quotes cause a mysqldump error.

Activity

  1. self-assigned this
    on Mar 20, 2014
  2. ericclemmons commented on Mar 20, 2014

    @ericclemmons
    ContributorAuthor

    This works:

    system "vagrant ssh local -c 'cd /vagrant && mysqldump -u\"#{db_user}\" -p\"#{db_password.gsub('$', '\$')}\" --opt --databases \"#{db_name}\" | gzip --rsyncable > #{backup_name}.gz'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions