ispCP - Board - Support
[HOWTO] Backup and Restore complete Domain - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Contributions Area (/forum-40.html)
+--- Forum: Howtos (/forum-41.html)
+--- Thread: [HOWTO] Backup and Restore complete Domain (/thread-9699.html)

Pages: 1 2 3 4 5 6 7 8


RE: [HOWTO] Backup and Restore complete Domain - KillerPenguin - 03-18-2012 06:50 PM

(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.


RE: [HOWTO] Backup and Restore complete Domain - UncleSam - 03-18-2012 07:46 PM

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/


RE: [HOWTO] Backup and Restore complete Domain - KillerPenguin - 03-18-2012 08:16 PM

(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!


RE: [HOWTO] Backup and Restore complete Domain - UncleSam - 03-18-2012 09:10 PM

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!