Current time: 12-25-2024, 11:12 PM Hello There, Guest! (LoginRegister)


Post Reply 
[HOWTO] Backup and Restore complete Domain
Author Message
KillerPenguin Offline
Newbie
*

Posts: 7
Joined: May 2007
Reputation: 0
Post: #71
RE: [HOWTO] Backup and Restore complete Domain
(08-18-2011 09:22 PM)pstanbra Wrote:  Doesn't work for me ...

PHP Fatal error: Class 'Config' not found in /var/www/ispcp/backup-restore/includes/boot.php on line 12

In ispCP 1.0.7 some class declarations changed so I think backup-restore can not run in 1.0.7 anymore.

I hope there will be a new version of backup-restore in the future! :roll eyes:


EDIT:
Very easy!
Only the names of a few classes have changed so it is easy to edit the files.
Class Config changed to ispCP_Config and class Database changed to ispCP_Database.

So the backup.php is working for me now. I will transfer the gpgs to the new server now and will try to restore there.
Bad news: restore does not work

I changed a few class names so that restore.php runs without declaration errors but now the error

Code:
Cannot insert admin database entry!

occurs.

D'OH!

There was simply a duplicate entry in the database!
I've run restore.php a few times until I've found all declaration errors so the database entry was already created.

The backup and restore of a simple domain with only a few eMail addresses worked fine.
In the next step I'll try to migrate a "bigger" domain with files in /htdocs and ftp accounts.
(This post was last modified: 03-18-2012 07:36 PM by KillerPenguin.)
03-18-2012 06:50 PM
Find all posts by this user Quote this message in a reply
UncleSam Offline
Junior Member
*

Posts: 28
Joined: Apr 2010
Reputation: 0
Post: #72
RE: [HOWTO] Backup and Restore complete Domain
Are you using the latest version of backup/restore? (i think the one from svn at the first page of this topic is outdated)

You can find it in the ispcp 1.0.7 package in the folder contrib/backup/restore/
(This post was last modified: 03-18-2012 07:47 PM by UncleSam.)
03-18-2012 07:46 PM
Find all posts by this user Quote this message in a reply
KillerPenguin Offline
Newbie
*

Posts: 7
Joined: May 2007
Reputation: 0
Post: #73
RE: [HOWTO] Backup and Restore complete Domain
(03-18-2012 07:46 PM)UncleSam Wrote:  Are you using the latest version of backup/restore? (i think the one from svn at the first page of this topic is outdated)

You can find it in the ispcp 1.0.7 package in the folder contrib/backup/restore/

I used the version from the svn repository.
I didn't know that there is a version in the package! Thanks for the kick!
03-18-2012 08:16 PM
Find all posts by this user Quote this message in a reply
UncleSam Offline
Junior Member
*

Posts: 28
Joined: Apr 2010
Reputation: 0
Post: #74
RE: [HOWTO] Backup and Restore complete Domain
np Wink
(03-18-2012 08:16 PM)KillerPenguin Wrote:  
(03-18-2012 07:46 PM)UncleSam Wrote:  Are you using the latest version of backup/restore? (i think the one from svn at the first page of this topic is outdated)

You can find it in the ispcp 1.0.7 package in the folder contrib/backup/restore/

I used the version from the svn repository.
I didn't know that there is a version in the package! Thanks for the kick!
03-18-2012 09:10 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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