N°1191 - Wrong file name for backup check.

SVN:trunk[5143]
This commit is contained in:
Eric Espié
2017-11-30 08:48:59 +00:00
parent d80b890cd0
commit 694da178c4

View File

@@ -211,7 +211,7 @@ catch(Exception $e)
exit;
}
$sZipArchiveFile = MakeArchiveFileName();
$sZipArchiveFile = MakeArchiveFileName().'.tar.gz';
echo date('Y-m-d H:i:s')." - Checking file: $sZipArchiveFile\n";
if (file_exists($sZipArchiveFile))
@@ -223,7 +223,7 @@ if (file_exists($sZipArchiveFile))
if ($iSize > $iMIN)
{
echo "Found the archive\n";
$sOldArchiveFile = MakeArchiveFileName(time() - 86400); // yesterday's archive
$sOldArchiveFile = MakeArchiveFileName(time() - 86400).'.tar.gz'; // yesterday's archive
if (file_exists($sOldArchiveFile))
{
if ($aOldStat = stat($sOldArchiveFile))