Webinoly is just the perfect tool for NGINX experts. Give it a try!
+1 vote
1.2k views
by Rookie
edited by

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:

 - site1.domain.com
 - site2.domain.com
 - site3.domain.com

Also, the output has colors which convert to control characters. So, here's what I have in my array:


-
site1.domain.com


-
site2.domain.com


-
site3.domain.com

but I need the array to have only the domains/folder names:

site1.domain.com
site2.domain.com
site3.domain.com

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.

Thanks!

2 Answers

+1 vote
by Talented
Do you have a fork of this script on GitHub? If you give me your link I can help you customize it for you.
by Rookie
Hi! I just set it up (not skilled with GitHub so let me know if I've done it correctly):

https://github.com/sshanky/wp-cli-backups-cloud-storage-webinoly/blob/master/webinoly-wp-cli-backup-gdrive.sh
by Rookie

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.

by Rookie

@sshanky I used that script just now, it worked fine. 

I hope you will keep this up to date, thank you for this. yes

0 votes
by Rookie
I don't know why the old code didn't work, but I solved the problem by abandoning the code I had been using and replacing it with Webinoly code from /usr/bin/site (the part that generates the site list). See the GitHub URLs below if you would like to see the changes.
Welcome to the Community site for Webinoly.

Our Optimized LEMP Web Server is a powerful set of commands for doing just about anything you could wish.

With Webinoly you can set up your NGINX web server in just one step.

* * * * * * *

To report a bug, please create a new issue on GitHub or ask a question here with the bug tag.
Webinoly Support Paypal Donations

PayPal · GitHub Sponsors · Bitcoin

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.

...