[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Problem with CMU
- Subject: Re: [cobalt-users] Problem with CMU
- From: Jeff Bilicki <jeff@xxxxxxxxxxx>
- Date: Wed Feb 20 11:31:05 2002
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> I'm using CMU 2.27 to backup my site and user data from one RaQ 4i to
> another once a day. To overwrite the user data on the backup server I'm
> using the option -S to skip conflict resolution for existing users.
> Unfortunately, I recognized that this does not change any data for existing
> users. This means that changed passwords, added files, new aliases, a.s.o
> are not transfered to the backup server.
> Can anyone give me a hint to solve this problem ?
> Thank you in advance
I would suggest not skipping the conflict resolution phase and selecting
Merge (M) for all conflicts.
The clean solution would be to delete all vsites before importing (and merge
the home site). CMU wasn't really desgined with this in mind, this more of a
backup and restore issue.
Jeff-
Here is a little script to delete a bunch of vsites:
#!/usr/bin/perl
use strict;
my ($cnt, $cmd, $site);
if(@ARGV) {
$cnt = $ARGV[0];
} else {
die "you need to provide a count\n"
}
if(-x "/usr/sbin/cobalt/delvsite") {
$cmd = "/usr/sbin/cobalt/delvsite";
} elsif(-x "/usr/sbin/cdelvsite") {
$cmd = "/usr/sbin/cdelvsite";
} else {
die "Cannot find delvsite command\n";
}
for(my $i = 1;$i <= $cnt;$i++) {
$site = "site".$i;
system("$cmd -g $site");
}