We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af30a52 commit d212c87Copy full SHA for d212c87
templates/mysqlbackup.sh.erb
@@ -19,5 +19,5 @@ PATH=/usr/bin:/usr/sbin:/bin:/sbin
19
20
find $DIR -mtime +30 -exec rm -f {} \;
21
mysqldump -u${USER} -p${PASS} --opt --flush-logs --single-transaction \
22
- --all-databases <% if backupcompress %> | bzcat -zc <% end %> > ${DIR}/mysql_backup_`date +%Y%m%d-%H%M%S`.sql<% if backupcompress %>.bz2<% end %>
+ --all-databases <% if backupcompress %>| bzcat -zc <% end %>> ${DIR}/mysql_backup_`date +%Y%m%d-%H%M%S`.sql<% if backupcompress %>.bz2<% end %>
23
0 commit comments