ikinci temizlik tamamlandı

This commit is contained in:
Ümit Tunç
2026-04-28 21:15:09 +03:00
parent f80443aec0
commit 37e7296527
8313 changed files with 2400677 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
<?php
//dump($saat);
//if($saat==env("BACKUP_TIME")) {
$dbhost = 'localhost:3036';
$dbuser = env("DB_USERNAME");
$dbname = env("DB_DATABASE");
$dbpass = env("DB_PASSWORD");
$path = storage_path("documents/013_Others/backup");
dump($path);
@mkdir($path, 0777, true);
chmod($path, 0777);
$backup_file = $dbname . date("Y-m-d-H-i-s") . '.gz';
// chmod("/home/stellar/backup/", 0777);
$command = "mysqldump -u $dbuser -p$dbpass ". "$dbname | gzip > $path/$backup_file";
// echo $command;
dump($command);
// dump(shell_exec($command));
//dump("SQL yedeği alındı.");
Log::debug("💾 $saat Yedek Alındı");
dump("ok");
//}
?>