pt-table-checksum toolkit for few databases from file
0
votes
1
answer
60
views
I've got a question. I'm doing a simple script right now and it isn't working like I want.
#!/bin/bash
cat /etc/backup.conf | egrep -v "(^#.*|^$|^--.*)" > /tmp/databases
while read line; do
pt-table-checksum [options] --databases $line --quiet
done < /tmp/databases
rm /tmp/databases
As you see I put names of databases to file /tmp/databases. Then I want to use pt-table-checksum for every database in that file line by line. This script works but only for first database name in file. Then it stops.
Any ideas?
Asked by zieloneoko
(1 rep)
May 29, 2015, 11:56 AM
Last activity: May 30, 2015, 07:39 AM
Last activity: May 30, 2015, 07:39 AM