update mysql_database_backup.rb

This commit is contained in:
connorc@orbitnode.net 2023-03-18 12:00:20 -06:00
parent b746eedac6
commit 44e4e9aef8

View File

@ -57,7 +57,7 @@ class MysqlDatabaseBackup
existing_files = `b2 ls #{@b2_bucket_name}`
existing_files.each_line do |line|
file_name = line.split(" ").last.strip
file_name = line.split(' ').last.strip
next unless file_name != b2_file_name
file_id = line.match(/"fileId": "([^"]+)"/)[1]