By aneuryzma on
hi,
if I install a new drupal on a different server and then I use the backup & migrate plugin, to restore a drupal from another server... is it perfectly restored ?
Or just the database ? Are the modules installed ?
If not, what's the easiest way to copy a drupal website from a server to another ? (with all modules, setting, etc.. a copy 1 to 1) ?
thanks
Edited by WorldFallz - moved to appropriate forum.
Comments
Restored, yes. 100% identical, not likely.
To directly answer your question: If you copy all files in the Drupal installation directory and the entire database (you may omit the content of the cache tables) then yes, it will be restored, and all modules will be enabled.
Notice that I said "copy all source code files". If you re-install Drupal on the new server, then you need to manually re-install the Modules' files, your theme and possibly your "default" directory (if it contains uploaded content). It doesn't really make sense to do it this way, though, if you can avoid it.
The main gotchas with this process:
After you complete the restore, be sure to flush your cache (Admin -> Performance).
---------------------------------
Steven Wright
Slalom
Thanks a lot for the
Thanks a lot for the exhaustive answer...
Anyway now it is not clear what's better to do. Should I use backup and migrate module, or should I export and import the database and copy the folders (And adjiust all other parameters you listed) ?
thanks
* export your db using backup
* export your db using backup and migrate.
* Copy all your files and folders.
* Upload all your files and folders to the new server
* delete settings.php in the sites/default folder
* copy default.settings.php in that folder, and rename it to settings.php (so that you have two files - settings.php and default.settings.php)
* reinstall Drupal as a fresh installation
* enable the backup and migrate module
* use backup and migrate to reinstall the database dump you took in the first step.
That will work 99% of the time. Personally, I've never had it not work, though my local developing environment is quite similar to the one on the servers I use. But if it doesn't work, you have a list of possible reasons why from the above poster.
Contact me to contract me for D7 -> D10/11 migrations.
I have one more question: if
I have one more question: if I copy the drupal folder to remote server, then I have to change the ownership for "files" folder and subfolders right ?
In order to do that, I need to be superuser right ?
thanks