Current time: 11-01-2024, 10:19 AM Hello There, Guest! (LoginRegister)


Post Reply 
[HOWTO] Backup and Restore complete Domain
Author Message
alecksievici Offline
Junior Member
*
Beta Team

Posts: 112
Joined: May 2008
Reputation: 0
Post: #62
RE: [HOWTO] Backup and Restore complete Domain
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!
(This post was last modified: 03-29-2011 07:57 AM by alecksievici.)
03-29-2011 07:34 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [HOWTO] Backup and Restore complete Domain - Nuxwin - 06-17-2010, 03:00 AM
RE: [HOWTO] Backup and Restore complete Domain - alecksievici - 03-29-2011 07:34 AM

Forum Jump:


User(s) browsing this thread: 3 Guest(s)