Well. I guess it won’t be your choice but I just uploaded all my stuff to Apple Music and listen from there. When you subscribe they have a nice feature of keeping your own music in the cloud. Even if something is not available in streaming they make it streamed.
EDIT: for the question I guess I’d go with a script
For sure i make backups. I have a proper 3-2-1 of everything I care.