Changes
Different method proposed
Wouldn't it be easier to do this in a for loop instead?
Something like this:
for i in $(echo 'SHOW DATABASES;' | mysql -u<username> -p<password> | grep -v '^Database$'); do
mysqldump --<some-options-for-mysqldump> $i > db-backup_$i.sql
done
-- Tor (tor@tblab.net)
Something like this:
for i in $(echo 'SHOW DATABASES;' | mysql -u<username> -p<password> | grep -v '^Database$'); do
mysqldump --<some-options-for-mysqldump> $i > db-backup_$i.sql
done
-- Tor (tor@tblab.net)