Skip to content

Commit

Permalink
Now adding random prefix to backups
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianPrieber committed Sep 29, 2023
1 parent 02f6200 commit 9d77c57
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion config/backup.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

use Illuminate\Support\Str;

return [

'backup' => [
Expand Down Expand Up @@ -109,7 +111,7 @@
/*
* 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.
Expand Down
3 changes: 2 additions & 1 deletion resources/views/components/config/backups.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
if ($handle = opendir('backups/updater-backups')) {
while (false !== ($entry = readdir($handle))) {
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>

Expand Down

0 comments on commit 9d77c57

Please sign in to comment.