From cf2a423aa7547275e72a90a01c7811d681ae1b0e Mon Sep 17 00:00:00 2001 From: Oskar Stenberg <01ste02@gmail.com> Date: Wed, 14 Jul 2021 13:52:24 +0200 Subject: [PATCH] Updated backup --- backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup.sh b/backup.sh index a3849b754..536d690de 100755 --- a/backup.sh +++ b/backup.sh @@ -105,7 +105,7 @@ sed -i 's/protected $useExtendedInserts = true;/protected $useExtendedInserts = #Generate the internal backup cd $snipeitDirectory php artisan backup:run -backupFile=$(ls -lt $backupDirectory | head -3 | tail -1 | awk '{print $9}') +backupFile=$(ls -lt $backupDirectory | head -2 | tail -1 | awk '{print $9}') extractDir=$(echo $backupFile | cut -f 1 -d '.') echo "Current backup: $extractDir" -- GitLab