Thanks Ken , <br>that's what I was looking for.<br><br>Regards<br><br><div class="gmail_quote">On Thu, Dec 3, 2009 at 10:54 PM, Ken Marcus - Precision Web Hosting, Inc <span dir="ltr"><<a href="mailto:kenlists@precisionweb.net">kenlists@precisionweb.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">----- Original Message -----<br>
From: enid vx<br>
To: BlueOnyx General Mailing List<br>
Sent: Thursday, December 03, 2009 7:46 AM<br>
Subject: [BlueOnyx:03009] Re: cmuExport/cmuImport<br>
<br>
<br>
<br>
Thank you Michael for responding ,<br>
<br>
so if I want to cmuImport all the sites how do I delete them without<br>
entirely erasing the system and installing from scratch.<br>
<br>
Rgds,<br>
<br>
Enid<br>
<br>
<br>
<br>
On Thu, Dec 3, 2009 at 4:23 PM, Michael Stauber <<a href="mailto:mstauber@blueonyx.it">mstauber@blueonyx.it</a>><br>
wrote:<br>
<br>
Hi Enid,<br>
<br>
<br>
> After some time when the BQ server was updated by different site<br>
> admins, I decided to do another cmuExport/cmuImport to the new BO<br>
> server,<br>
> but in this case I had all the sites existing in the BO and there were<br>
> some problems with<br>
> 1- the virtual users and<br>
> 2- system users<br>
><br>
> and the script cmuImport asking me for every users (to resolve<br>
> dependecies) to modify it/delete it/drop/quit. I've responded to all<br>
> of them letting them as they were.<br>
><br>
> So the question: is this a problem, and how can I make another<br>
> cmuImport with the new exported sites in the existing BO?<br>
><br>
> This is somehow an update process that I want to make , to leave the<br>
> two servers in the same state with the same data.<br>
> Is it possible to restore (with cmuImport) all the sites data in the<br>
> existing BO or should I cmuImport only in a clean installation.<br>
<br>
<br>
It has always been the case that with CMU you should only import sites and<br>
users that don't already exist on the system.<br>
<br>
When CMU tries to import a site or user that already exists on the target<br>
system, then you sure get the dialogue to merge, drop or modify. That allows<br>
some limited form of conflict resolution. But generally you'd be better off<br>
to<br>
delete the conflicting site or user first and then use CMU to import the one<br>
from the CMU dump.<br>
<br>
--<br>
With best regards<br>
<br>
Michael Stauber<br>
<br>
_______________________________________________<br>
Blueonyx mailing list<br>
<a href="mailto:Blueonyx@blueonyx.it">Blueonyx@blueonyx.it</a><br>
<a href="http://www.blueonyx.it/mailman/listinfo/blueonyx" target="_blank">http://www.blueonyx.it/mailman/listinfo/blueonyx</a><br>
<br>
<br>
<br>
<br>
<br>
</div></div>Enid<br>
<br>
>From the GUI you can do it.<br>
<br>
Or, I believe  can delete sites from the command line using<br>
/usr/sbin/cdelvsite --fqdn <a href="http://www.somesite.com" target="_blank">www.somesite.com</a><br>
<br>
Possibly using a perl script like<br>
<br>
#!/usr/bin/perl<br>
#remove  all the sites on list<br>
<br>
print "try to open listofsites.txt\n";<br>
open (FIL,"listofsites.txt") or die "Can't Open\n";<br>
  while (<FIL>) {<br>
  $thedomain =  $_;<br>
  chomp $thedomain;<br>
  print "delete the site $thedomain\n";<br>
  #system("/usr/sbin/cdelvsite -d $thedomain");<br>
  system("/usr/sbin/cdelvsite --fqdn $thedomain");<br>
<br>
}<br>
<br>
close (FIL);<br>
<br>
<br>
<br>
----<br>
Ken Marcus<br>
Ecommerce Web Hosting by<br>
Precision Web Hosting, Inc.<br>
<a href="http://www.precisionweb.net" target="_blank">http://www.precisionweb.net</a><br>
<div><div></div><div class="h5"><br>
_______________________________________________<br>
Blueonyx mailing list<br>
<a href="mailto:Blueonyx@blueonyx.it">Blueonyx@blueonyx.it</a><br>
<a href="http://www.blueonyx.it/mailman/listinfo/blueonyx" target="_blank">http://www.blueonyx.it/mailman/listinfo/blueonyx</a><br>
</div></div></blockquote></div><br>