iCloud Music Backup
Does iCloud Backup Music Not Purchased from iTunes? Explained

Learn if iCloud backs up music not bought on iTunes and how to safeguard your entire music collection using iTunes Match or iCloud Drive.