From 9d77c57838da6c3c61f92674268836c1f515739a Mon Sep 17 00:00:00 2001 From: Julian Prieber <60265788+JulianPrieber@users.noreply.github.com> Date: Fri, 29 Sep 2023 16:56:59 +0200 Subject: [PATCH] Now adding random prefix to backups --- config/backup.php | 4 +++- resources/views/components/config/backups.blade.php | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/config/backup.php b/config/backup.php index 13056a8..167330b 100644 --- a/config/backup.php +++ b/config/backup.php @@ -1,5 +1,7 @@ [ @@ -109,7 +111,7 @@ return [ /* * 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. diff --git a/resources/views/components/config/backups.blade.php b/resources/views/components/config/backups.blade.php index 1b95ee3..5fb835e 100644 --- a/resources/views/components/config/backups.blade.php +++ b/resources/views/components/config/backups.blade.php @@ -32,7 +32,8 @@ if ($handle = opendir('backups/updater-backups')) { while (false !== ($entry = readdir($handle))) { if ($entry != "." && $entry != "..") { - echo '
  '; print_r($entry); echo '

'; + $entrys = substr($entry, 17); + echo '
  '; print_r($entrys); echo '

'; }}} ?>