Skip to main content

Move accounts between servers except mail

Comments

6 comments

  • cPanelMichael
    Hello @Rogerio, The easiest approach would be to uncheck Copy Home Directory for those three accounts when using WHM >> Transfer Tool to copy the accounts to the destination server. Then, use rsync to manually transfer the data from the home directories for those accounts (/home/$username/) as needed and in the order you prefer. Thank you.
    0
  • Rogerio
    Hello @cPanelMichael great, question: unchecking "Copy Home Directory" will not affect any data, like mail passwords, MySQL databases, etc? Just a rsync and set owner is enough? Rogerio
    0
  • cPanelLauren
    HI @Rogerio MySQL databases are stored in the MySQL directory not in /home/$user so they would be unaffected. I would ensure that when you perform the rsync you include all folders besides mail if you want to do that separately.
    0
  • Rogerio
    Thank you, @cPanelLauren
    0
  • Rogerio
    Hello @cPanelMichael and @cPanelLauren Worked, thank you. But I had to set new GID and UID to each folder on /home/user. How can I fix owner and permissions since the UID/GID are differents in the new server? And, doing this way, it didnt create /etc/apache2/logs/domlogs/user folder (symlinked on /home/user). Thanks.
    0
  • cPanelLauren
    Hi @Rogerio You should be able to use chown or usermap/groupmap as described in the rsync man page: --usermap=STRING custom username mapping --groupmap=STRING custom groupname mapping --chown=USER:GROUP simple username/groupname mapping
    0

Please sign in to leave a comment.