exec('mysqldump '
. '--user='.$value['username']
.' --password='.$value['password']
.' --host='.$value['host']
.' -A'
.' >'
.$backupDir
.'/'
.$key
.'-'.$value['host']
.'-'.$value['database']
.'.sql');
}
mysqldump -u root -h82.82.82.82 -p Pass -A > all-databases.sql