Skip to content

Commit

Permalink
Update DbBackup.php
Browse files Browse the repository at this point in the history
changed namespaces for both module
  • Loading branch information
sayed-cse authored Mar 14, 2024
1 parent bc5c580 commit 39a4913
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions library/DbBackup.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
declare(strict_types=1);

namespace F\Back\Libraries;
namespace F\Libraries\BackupDB;

use Phalcon\Db\Adapter\Pdo\AbstractPdo;

Expand Down Expand Up @@ -40,7 +40,7 @@ public function backupDatabase()

if (!is_resource($process)) {
error_log("Failed to initiate mysqldump process.");
echo "Failed to initiate mysqldump process.";
#echo "Failed to initiate mysqldump process.";
return;
}

Expand All @@ -52,10 +52,10 @@ public function backupDatabase()
$return_value = proc_close($process); // Close process

if ($return_value === 0) {
echo "Database backup created successfully: $backupFilePath";
#echo "Database backup created successfully: $backupFilePath";
error_log("Database backup created successfully: $backupFilePath");
} else {
echo "Errors occurred during database backup: $errors";
#echo "Errors occurred during database backup: $errors";
error_log("Errors occurred during database backup: $errors");
}
}
Expand Down

0 comments on commit 39a4913

Please sign in to comment.