[BlueOnyx:26454] Re: Remove all vsites

Taco Scargo taco at blueonyx.nl
Thu Sep 7 12:12:21 -05 2023


Hi Colin,

You need to do one at a time.
Put below in a file (e.g. delallsites) and execute it as root on the server using:
bash delallsites

for SITE in `grep site /etc/group | sed 's/:.*//' | grep -v site-adm`; do
/usr/sausalito/sbin/vsite_destroy.pl $SITE
done

Best regards,

Taco

> On 7 Sep 2023, at 16:50, Colin Jack via Blueonyx <blueonyx at mail.blueonyx.it> wrote:
> 
> Hi Michael,
> 
>>> I have an aborted easy migrate and want to delete all vsites and 
>>> databases on the target server.
>>> 
>>> Is there an easy way to do this?
> 
>> /usr/sausalito/sbin/vsite_destroy.pl site1
> 
>> That will delete the Vsite with the group-id "site1" and all data 
>> related to it.
> 
> Thanks - and if I want to delete all vsites can I use a wildcard or do each one at a time?
> 
>> However: With Easy-Migrate and Easy-Backup you don't need to delete 
>> Vsites if you want to continue an aborted migration or restore. It will 
>> see that the site is already present and will do its best to synchronize 
>> it with the settings and data that you want to import.
> 
>> So you can simply continue an aborted migration or restore.
> 
> I know that because I have do this in the past.
> 
> In this case I actually then migrated to a different server (I had prepared a few to upgrade my 5208R servers) and I now want to reuse this one but for a different host. 
> 
> Many thanks
> 
> Colin
> 
> 
> _______________________________________________
> Blueonyx mailing list
> Blueonyx at mail.blueonyx.it
> http://mail.blueonyx.it/mailman/listinfo/blueonyx

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20230907/468283d3/attachment.html>


More information about the Blueonyx mailing list