I have a script that I used to use in Easy Engine. I adapted it for Webinoly and it almost works, but I'm having trouble generating the array with the list of sites using site -list, because the output is indented and has dashes/hyphens at the beginning of each line:
Also, the output has colors which convert to control characters. So, here's what I have in my array:
but I need the array to have only the domains/folder names:
Do you have any thoughts on this? In case you want more info, here's a post I placed on Stack Exchange.
The script I am using is a variation of this script, which simply zips the site folder, exports the database, and saves the two files on Google Drive.