2008-12-22 09:44:26 -05:00
|
|
|
$OpenBSD: patch-usr_bin_mysql-zrm-backup,v 1.2 2008/12/22 14:44:26 giovanni Exp $
|
|
|
|
--- usr/bin/mysql-zrm-backup.orig Fri Dec 5 01:46:01 2008
|
|
|
|
+++ usr/bin/mysql-zrm-backup Fri Dec 19 11:05:27 2008
|
2008-10-17 19:05:41 -04:00
|
|
|
@@ -38,7 +38,7 @@ use ZRM::MySQL;
|
|
|
|
|
|
|
|
$SIG{'TERM'} = sub { $abort_flag = 1; };
|
|
|
|
|
|
|
|
-my $MD5SUM="md5sum";
|
|
|
|
+my $MD5SUM="md5";
|
|
|
|
my $MAILCMD="mail";
|
|
|
|
|
|
|
|
#Neither mysqlhotcopy not mysqldump will do a --flush-logs
|
2008-12-22 09:44:26 -05:00
|
|
|
@@ -1585,7 +1585,7 @@ sub totalSize()
|
2008-10-17 19:05:41 -04:00
|
|
|
$inputs{"synchronous-checksum"} == 1 ){
|
|
|
|
my $file = $File::Find::fullname;
|
|
|
|
if( -f $file ){
|
|
|
|
- my $x = $MD5SUM." -b "."\"$file\"";
|
|
|
|
+ my $x = $MD5SUM." -bq "."\"$file\"";
|
|
|
|
$x = &execCmdAndGetOutput($x);
|
|
|
|
if( !defined $x ){
|
|
|
|
&printError( "Could not get md5 checksum\n" );
|