Thanks for the migration solution, it works great.
Also, as i had a lot of domains to move around i made a little bash script that takes the heat of my head.
Code:
touch /var/www/ispcp/backup-restore/backup.sh
chmod +x /var/www/ispcp/backup-restore/backup.sh
echo "#!/bin/bash
DIRS=`ls /var/www/virtual/`
PASS="password"
for D in $DIRS
do
php /var/www/ispcp/backup-restore/backup.php $D $PASS
done" > /var/www/ispcp/backup-restore/backup.sh
/var/www/ispcp/backup-restore/backup.sh
Rsync on you primary server (old server)
Code:
rsync -r -a -v -e "ssh -l root -p 22" --delete /var/www/ispcp/backup-restore/archive/ NEW-SERVER-IP:/var/www/ispcp/backup-restore/archive/
And now on your new server
Code:
touch /var/www/ispcp/backup-restore/restore.sh
chmod +x /var/www/ispcp/backup-restore/restore.sh
echo "#!/bin/bash
BKPS=`ls /var/www/ispcp/backup-restore/archive/ | sed 's/\(.*\).........../\1/'`
PASS="password"
for D in $BKPS
do
php /var/www/ispcp/backup-restore/restore.php $D $PASS
done" > /var/www/ispcp/backup-restore/restore.sh
/var/www/ispcp/backup-restore/restore.sh
Good luck!