Now adding random prefix to backups

This commit is contained in:
Julian Prieber 2023-09-29 16:56:59 +02:00
parent 02f6200922
commit 9d77c57838
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,7 @@
<?php <?php
use Illuminate\Support\Str;
return [ return [
'backup' => [ 'backup' => [
@ -109,7 +111,7 @@ return [
/* /*
* The filename prefix used for the backup zip file. * The filename prefix used for the backup zip file.
*/ */
'filename_prefix' => '', 'filename_prefix' => Str::random(16).'-',
/* /*
* The disk names on which the backups will be stored. * The disk names on which the backups will be stored.

View File

@ -32,7 +32,8 @@
if ($handle = opendir('backups/updater-backups')) { if ($handle = opendir('backups/updater-backups')) {
while (false !== ($entry = readdir($handle))) { while (false !== ($entry = readdir($handle))) {
if ($entry != "." && $entry != "..") { if ($entry != "." && $entry != "..") {
echo '<div class="button-entrance"><a class="buttondm button-hover icon-hover" style="color:#ffffff; background-color:#000;" href="' . url('admin/backups') . '/?' . $entry . '"><i style="color: " class="icon hvr-icon fa fa-download"></i>&nbsp; '; print_r($entry); echo '</a></div><br>'; $entrys = substr($entry, 17);
echo '<div class="button-entrance"><a class="buttondm button-hover icon-hover" style="color:#ffffff; background-color:#000;" href="' . url('admin/backups') . '/?' . $entry . '"><i style="color: " class="icon hvr-icon fa fa-download"></i>&nbsp; '; print_r($entrys); echo '</a></div><br>';
}}} ?> }}} ?>
</div> </div>