-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathtpls.js
24 lines (15 loc) · 861 Bytes
/
tpls.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/**
* Lo-Dash Template Helpers
* http://lodash.com/docs/#template
* https://github.com/gruntjs/grunt/wiki/grunt.template
*/
var tpls = {
search_replace: "<%= scriptPath %>srdb.cli.php -h <%= host %> -u <%= user %> -p <%= pass %> -n <%= database %> -s \"<%= search %>\" -r \"<%= replace %>\" <%= flags %>",
//search_replace: "sed -i '' 's#<%= search %>#<%= replace %>#g' <%= path %>",
backup_path: "<%= backups_dir %>/<%= env %>/<%= date %>/<%= time %>",
mysql: "mysql -h <%= host %> -u <%= user %> -p<%= pass %> -P<%= port %> <%= database %>",
ssh: "ssh -p <%= port %> <%= user %>@<%= host %>",
scp: "scp -r -C -P <%= port %> <%= src_path %> <%= user %>@<%= host %>:<%= dest_path %>",
mysqldump: "mysqldump -h <%= host %> -u<%= user %> -p<%= pass %> -P<%= port %> <%= database %> <%= ignoreTables %>"
};
module.exports = tpls;