diff --git a/mysql_database_backup.rb b/mysql_database_backup.rb index edfad7b..5a8803e 100644 --- a/mysql_database_backup.rb +++ b/mysql_database_backup.rb @@ -55,7 +55,7 @@ class MysqlDatabaseBackup b2_file_url = "b2://#{@b2_bucket_name}/#{b2_file_name}" # Check if a backup file with the same name already exists in the B2 bucket - existing_file = `b2-cli list-file-names #{@b2_bucket_name} --prefix #{b2_file_name}` + existing_file = `b2 list-file-names #{@b2_bucket_name} --prefix #{b2_file_name}` if existing_file.include?(b2_file_name) # Delete the existing backup file from the B2 bucket file_id = existing_file.match(/"fileId": "([^"]+)"/)[1]