Refactor list_backup.rb