From a7c1c0e73272d9c13e1de1b3d94e8f8c23a0ae2d Mon Sep 17 00:00:00 2001 From: Vaclav Elias Date: Fri, 28 Aug 2015 08:39:33 +0100 Subject: [PATCH] Check if the exec function exists. On the CentOS 7 server, it simply didn't go through this. After this check it moved to the other compression method and the backup was successfull. --- wp-db-backup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-db-backup.php b/wp-db-backup.php index 2899e3b..c6ef619 100755 --- a/wp-db-backup.php +++ b/wp-db-backup.php @@ -1047,7 +1047,7 @@ function deliver_backup($filename = '', $delivery = 'http', $recipient = '', $lo /** * Try gzipping with an external application */ - if ( file_exists( $diskfile ) && ! file_exists( $gz_diskfile ) ) { + if (function_exists('exec') && file_exists( $diskfile ) && ! file_exists( $gz_diskfile ) ) { @exec( "gzip $diskfile" ); }