Connect. Communicate. Collaborate. Securely.

Home » Kerio User Forums » Kerio Connect » Migrate User from one server to another (I need to transfer all my users to another server)
  •  
Yohann94

Messages: 49

Karma: 1
Send a private message to this user
Hello,
I'm planning to remove a Kerio server because all people using it are moving to another location, where there is already another Kerio server. But before that, I need to transfer all the accounts (50).
Users from the old server are already created on the new one but I need to replace the datas. Both servers are using the same domain.
I tried with the scp command, it seems to work, but I need to be sure that this is the right way to do this.
scp -r -p -C root<_at_>192.168.130.249:"/Volumes/DATA/Kerio\\ Store/mail/mydomain.fr/transfert/" .

"transfert" is the name of my test user. Everything but the parameters seems to be transferred, but parameters are not big deal.

Any advices on the method ?


PS : I saw that Kerio Connect is able to do this natively, but i won't update my old server as I stopped paying the license this year.

[Updated on: Wed, 10 February 2010 11:32]

  •  
ccjwells

Messages: 192
Karma: 0
Send a private message to this user
I think what you are proposing would work fine. You will probably want the service stopped while you copy the files though.
  •  
Yohann94

Messages: 49

Karma: 1
Send a private message to this user
The migration was OK. For information purpose, here is my final script :
#!/bin/bash

if [ ! $1 ]
then
        echo "usage : $0 user"
        exit 1
fi
if [ ! -d "/Volumes/Messagerie/Kerio Store/mail/mydomain.fr/$1" ]
then
        echo "Sorry, this user doesn't exist"
        exit 1
fi
mailuser=$1
echo "You asked to migrate this user : $mailuser..."
command="scp -r -p -C root<_at_>server1.mydomain.fr:\"/Volumes/DATA/Kerio\\ Store/mail/mydomain.fr/$mailuser\" \"/Volumes/Messagerie/Kerio Store/mail/mydomain.fr/\""
printf "The command will be : \n$command\n"
printf "Continue ? "
read reponse
echo $reponse
if [ $reponse = "yes" ]
then
        echo "Let's go !"
        scp -r -p -C root<_at_>server1.mydomain.fr:"/Volumes/DATA/Kerio\\ Store/mail/mydomain.fr/$mailuser" "/Volumes/Messagerie/Kerio Store/mail/mydomain.fr"
else
        echo "Bye."
fi

[Updated on: Wed, 16 June 2010 06:36]

Previous Topic: Mail slow on LAN
Next Topic: One Public Folder for all domains on the server?
Goto Forum:
  


Disclaimer:
Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Sun Nov 19 16:55:40 CET 2017

Total time taken to generate the page: 0.00442 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.