Here are the results of my work and searches. Share your infos !
Many people use CPanel to create/restore backups. It should work directly, but they're many ways to do it.
Transfer your files from old host to new host
Create a backup
Cpanel: generate full/home/db bkp
Restore backup
SSH: /scripts/restorepkg usernametobemoved
To restore a cpmove-username.tar.gz
1.Upload cpmove-username.tar.gz to the webserver's /home directory.
2.Type: /scripts/restorepkg username (replace username with the account username)
3.This will restore the site, and also create the cPanel account.
works only if you've acces to WHM, you're a reseller at the host.
Cpanel: restore a home bkp, restore db bkp
manual: uncompress archive (tar.gz). I used: tar -xzvpf bkpfile destdir/ . Run it from the directory containning the bkpfile. -p preserve file permissions.
Transfer database (MySQL)
create backup
Cpanel works ok. It makes the same bkp as phpmyadmin.
restore a bkp
Cpanel doesn't work well. db contains less data compared with original one (3 records less).
phpmyadmin: same result. db contains less data compared with original one (3 records less).
cpanel gives same result as phpmyadmin. However it seems to work.
I use phpmyadmin to create the destination database and put data in it (SQL query, import your db backup file, often a .gz)
Configuration post-transfer
.htaccess file is very important. Set the environnement for the script to work on your new host and following your wishes.
files and directory permissions are very important too. If you make a manual restore of the files, but sure to preserve it (tar -p).
Transfer Mambo CMS
domaine: onenew.org
I use Mambo CMS. I want to transfer it from my old host.
As any other script, to transfer it, one have to move the files and the
database and configure it to work on the new host.
I'd like to move my mambo site from
www.nosens.org/2 (old host) to
www.onenew.org/2 (new host).
On the old host: I've used cpanel to backup the files (full backup) and
Phpmyadmin to backup the db.
On the new host: Ive used SSH to restore file (only the one I wanted,
in /public_html/2, preserving the permissions) and Phpmyadmin to restore the
db (all tables are ok).
I've checked the configuration.php file and I've put the correct parameters
(what I think they are at least), adapt that:
******
$mosConfig_host = 'localhost';
$mosConfig_user = 'username';
$mosConfig_password = '*****';
$mosConfig_db = 'username_mambo';
$mosConfig_dbprefix = 'mos_';
$mosConfig_lang = 'english';
$mosConfig_absolute_path = '/home/username/public_html/2';
$mosConfig_live_site = 'http://www.onenew.org/2';
***********