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

Downloading files #73

Merged
merged 2 commits into from
Sep 1, 2014
Merged

Conversation

alexander-akait
Copy link
Contributor

Usage:

mysqldump: {
    files: {
        //local dest and remote src
        'test1/': 'includes/language', // Copy remove directory to local directory
        'test1/dump.sql': 'index.php',
        'dump.sql': 'index.php'
    },
    options: {
        createDirectories: true,
        directoryPermissions: parseInt(755, 8),
        path: '<%= secret.path %>',
        host: '<%= secret.host %>',
        username: '<%= secret.username %>',
        password: '<%= secret.password %>',
        showProgress: true,
        srcBasePath: '<%= secret.path %>/public_html/', // Base relatively remote path options
        destBasePath: __dirname, // Local base
        mode: 'download' // Or upload
    }
}

Usage:
```javascript
mysqldump: {
    files: {
        //Todo local dest and  remote src
        'test1/': 'includes/language', // Copy remove directory to local directory
        'test1/dump.sql': 'index.php',
        'dump.sql': 'index.php'
    },
    options: {
        createDirectories: true,
        directoryPermissions: parseInt(755, 8),
        path: '<%= secret.path %>',
        host: '<%= secret.host %>',
        username: '<%= secret.username %>',
        password: '<%= secret.password %>',
        showProgress: true,
        srcBasePath: '<%= secret.path %>/public_html/', // Base relatively remote path options
        destBasePath: __dirname, //
        mode: 'download' // Or upload
    }
}
```
@Odi55555
Copy link

this works fine for me and should resolve #41, too

@andrewrjones andrewrjones merged commit 3e2c834 into israelroldan:master Sep 1, 2014
@andrewrjones
Copy link
Collaborator

Thanks! Good feature to have. And sorry it took me so long to get to this.

@chuckmo
Copy link
Collaborator

chuckmo commented Sep 3, 2014

Could we get some documentation for this into the README? The above code snippet is not particularly clear. I'm having to do a lot of trial and error to get this working.

@alexander-akait
Copy link
Contributor Author

@chuckmo create issue if you have problems

@bredon
Copy link

bredon commented Oct 22, 2014

@chuckmo any luck getting it to work? I too am having issues, but want to see if anyone else has it working before submitting issue. tks

@chuckmo
Copy link
Collaborator

chuckmo commented Oct 22, 2014

Yep, it works. The config settings are not particularly intuitive. Open an issue and I'll help debug.

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.

None yet

5 participants