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.
I was able to make this work. I used the code from webinoly's /usr/bin/site, taking the part that generates the site list, and removing the formatting. Things seem to be working. Still, would love your feedback and ideas. It could be improved, for sure, and it would also be nice to do the same thing for AWS and Backblaze B2.
Maybe in the future Webinoly can include an option to have a "raw" output of the list command. Something like:
sudo site -list=raw
What do you think?
@sshanky I used that script just now, it worked fine.
I hope you will keep this up to date, thank you for this.
Your regular donations is what keep this project moving forward. If you like Webinoly, buy me a coffee or a beer to show support.