Current time: 12-26-2024, 10:58 PM Hello There, Guest! (LoginRegister)


Post Reply 
[HOWTO] Backup and Restore complete Domain
Author Message
Mr.Sisko Offline
Junior Member
*

Posts: 17
Joined: Sep 2010
Reputation: 0
Post: #61
RE: [HOWTO] Backup and Restore complete Domain
I've got some bad news:

after a restore from 1.0.6 to 1.0.7, all password's from my users are wrong, like mail, mysql and the panell.

Did some body notice that?

My System: Debian Lenny fresh installed today, with all updates on a Root-Server. I'm used your brand new script of the contrib Folder. The old Script are Dated from Feb 2010 (whitch i'm make the backup).

Are there anybody who like to help me?

Greetz to the great Community.

Peter

P.S.: excused me about my bad english
02-24-2011 04:37 AM
Find all posts by this user Quote this message in a reply
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
WarCow Offline
Newbie
*

Posts: 9
Joined: Aug 2007
Reputation: 0
Post: #63
RE: [HOWTO] Backup and Restore complete Domain
How can I get get scripts? SVN seems to be down.
07-03-2011 11:27 AM
Find all posts by this user Quote this message in a reply
UncleSam Offline
Junior Member
*

Posts: 28
Joined: Apr 2010
Reputation: 0
Post: #64
RE: [HOWTO] Backup and Restore complete Domain
This backup solution is no longer doing a backup of my email adresses (just the email name but not the mails).

I have default ispcp courier/postfix server with tls (postfix) and ssl (courier pop and imap) support. Changed nothing else.

I created a backup of /var/mail/ folder but cant restore it by copying it back to /var/mail/

Any idea?

Also tried to restore domains with
Code:
php restore.php -ip xxx.xxx.xxx.xxx domain.tld password
and with server ip id
Code:
php restore.php -ip 2 domain.tld password
but it created all with the first ip - is this option "-ip" working?
(This post was last modified: 07-29-2011 03:38 AM by UncleSam.)
07-29-2011 03:35 AM
Find all posts by this user Quote this message in a reply
pstanbra Offline
Junior Member
*

Posts: 61
Joined: May 2010
Reputation: 0
Post: #65
RE: [HOWTO] Backup and Restore complete Domain
Doesn't work for me ...

PHP Fatal error: Class 'Config' not found in /var/www/ispcp/backup-restore/includes/boot.php on line 12
08-18-2011 09:22 PM
Visit this user's website Find all posts by this user Quote this message in a reply
pstanbra Offline
Junior Member
*

Posts: 61
Joined: May 2010
Reputation: 0
Post: #66
RE: [HOWTO] Backup and Restore complete Domain
anyone?
08-19-2011 07:27 PM
Visit this user's website Find all posts by this user Quote this message in a reply
rmb Offline
Junior Member
*

Posts: 14
Joined: Feb 2009
Reputation: 0
Post: #67
RE: [HOWTO] Backup and Restore complete Domain
i got the same error as pstanbra, and one other:
Quote:PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/mhash.so' - /usr/lib/php5/20090626/mhash.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Fatal error: Class 'Config' not found in /var/www/ispcp/backup-restore/includes/boot.php on line 12

Fatal error: Class 'Config' not found in /var/www/ispcp/backup-restore/includes/boot.php on line 12
any solutions?
greets
10-11-2011 09:55 PM
Find all posts by this user Quote this message in a reply
rmb Offline
Junior Member
*

Posts: 14
Joined: Feb 2009
Reputation: 0
Post: #68
RE: [HOWTO] Backup and Restore complete Domain
no one?
10-22-2011 09:03 PM
Find all posts by this user Quote this message in a reply
RouterRat Offline
Junior Member
*

Posts: 30
Joined: Mar 2011
Reputation: 0
Post: #69
RE: [HOWTO] Backup and Restore complete Domain
Hi everyone,

I am not very experienced but have been using Linux and ispCP for a while now.
Don't want to take the level of this conversation to ground level but I am having an issue I guess a funny one for you to respond.

Instructions sounded clear so I wanted to give a try and move my clients to my bigger server.

I am typing
svn export http://www.isp-control.net:800/ispcp_svn...up-restore
and getting -bash: svn: command not found
what am I supposed to install ? svn?

any help appreciated, also is there a link for these operations in documentation tab?

btw, as "Restore last backup" option did not work I am going to try this. It said the request was queued but never done anything.

Thanks.
(This post was last modified: 01-21-2012 06:57 PM by RouterRat.)
01-21-2012 06:53 PM
Find all posts by this user Quote this message in a reply
ephigenie Offline
Project Leader
*******
Administrators

Posts: 1,578
Joined: Oct 2006
Reputation: 15
Post: #70
RE: [HOWTO] Backup and Restore complete Domain
yes please install svn.
01-22-2012 05:12 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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