Commit cf2a423a authored by OskarStenberg's avatar OskarStenberg
Browse files

Updated backup

parent 8954a020
......@@ -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"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment