Marks Blog
  • PowerDNS Admin
  • About
  • Simple Ticket System

Plesk 9.x to 10 migration – no IMAP subfolders – workaround

November 11, 2010 by mark

Had the “pleasure” of migrating a Plesk 9.5 Linux server to another running the brand new Plesk 10 panel. Apart from the new GUI interface in Plesk 10, the migration was fast and went smooth. Or so I thought. The first problem I noticed was missing .htaccess files. The other, more serious, problem was with IMAP/Maildir subfolders not being migrated. The quick solution was a loop of mail accounts and rsync over ssh. Change the SOURCE host to the IP/hostname of the “old” server, or some other server with a copy of the complete Maildir’s. Run the script on the “new” Plesk 10 host.

#!/bin/sh

### rsync app must be installed on source & destination
## apt-get install rsync

### This script should be run on the destination host (Plesk 10)

ROOT=/var/qmail/mailnames
DEPTH=2
SOURCE=old-plesk.server.tld

### Loop folders
for i in $(find $ROOT -maxdepth 2 -type d -print); do
        if [ -d $i/Maildir ]; then
                echo "Syncing $i"
                rsync -ar ${SOURCE}:${i}/Maildir ${i}/
        fi
done

A quick fix for the missing .htaccess files could be running the following on the “old” server. I have ssh keys installed and enabled agent authentication forwarding, so I won’t need to enter my password for each file.

find /var/www/vhosts/ -name '.htaccess' \
 -exec rsync -a {} root@new-plesk.server.tld:{} \;
Posted in: Linux & Unix Tagged: imap, migration, plesk, sync

Weather Station

Pages

  • About
  • PowerDNS Admin
  • Simple Ticket System

Affiliates

  • Danish Sensor Engineering
  • Mintr ApS
  • Nellemann Data

Social

  • BitBucket
  • GitHub
  • LinkedIn
  • Mastodon

Categories

  • Android
  • Automobile
  • Blog & Rantings
  • Development & Scripting
  • Grails
  • Linux & Unix
  • Mac OS X
  • Misc
  • No category
  • PowerDNS Admin
  • Puppet
  • Security Related
  • VirtualBox
  • Virtualization
  • VMware
  • Windows

Archives

  • January 2019
  • September 2017
  • January 2016
  • May 2015
  • March 2015
  • February 2015
  • December 2014
  • October 2014
  • September 2014
  • August 2014
  • June 2014
  • January 2014
  • July 2013
  • June 2013
  • February 2013
  • January 2013
  • December 2012
  • August 2012
  • May 2012
  • October 2011
  • April 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • March 2010
  • October 2009
  • September 2009
  • April 2009
  • January 2009
  • March 2008
  • January 2008
  • November 2007
  • January 2007
  • December 2006
  • November 2006
  • August 2006
  • June 2006
  • March 2006
  • October 2005
  • August 2005

Copyright © 2025 Marks Blog.

Mobile WordPress Theme by themehall.com