small medium large xlarge

Generic-user-small
27 Nov 2011, 13:29
Emmanuel Di Pretoro (2 posts)

Hi,

I’ve found some errors in the code of db_backup.rb (http://media.pragprog.com/titles/dccar/code/have_a_purpose/db_backup/bin/db_backup.rb)

Here’s the correction:

@database = ARGV.shift@ @username = ARGV.shift@ @password = ARGV.shift@ @end_of_iter = ARGV.shift@

@if end_of_iter.nil?@ @ backup_file = database + Time.now.strftime(“%Y%m%d”)@ @else@ @ backup_file = database + end_of_iter@ @end@ @mysqldump -u#{username} -p#{password} #{database} > #{backup_file}.sql@ @gzip #{backup_file}.sql@

All the best,

Emmanuel Di Pretoro

Dmfcb_pragsmall
27 Nov 2011, 18:39
David Copeland (489 posts)

Thanks, I noticed this as well and it should be fixed in the next Beta (or certainly for the actual release).

You must be logged in to comment