Hi,
Currently my strategy for moving large cPanel accounts in a reasonable amount of time is somewhat of a kludge.
Warning this was done from memory and may not be entirely accurate do not use.Code:USER=useraccount rsync -av /home/${USER} newserver.example.net:/home mkdir /home/${USER}.tmp mv /home/${USER}/{mail,public_html,public_ftp,tmp} /home/${USER}.tmp pkgacct ${USER} rsync -av /home/cpmove-${USER}.tar.gz newserver.example.net:/home mv /home/${USER}.tmp/* /home/${USER}/ rmdir /home/${USER}.tmp rm /home/cpmove-${USER}.tar.gz
Doing as above saves hours when doing backups but also takes the users site offline while the the cpbackup is created (usually only a minute with all the data removed).
I was hoping cPanel might provide a version of pkgacct that allows you to pass --exclude-from to the tar command ran by pkgacct.
Does anyone else have a more elegant solution to the problem?



LinkBack URL
About LinkBacks
Reply With Quote





