| Restoring a backup |
|
Restoring a generated clone on another location can be done it 2 ways:
2. Manually 3. Remote Restoring , launching the Joomla.Cloner.php
1. The Automatic restore mode
For this, you need to go in your JoomlaCloner component screen, and click on the Actions->View Backups left menu link! On this area, you will be able to view all your existing backup! To restore a backup or more, you need to check the box near them, and hit the Clone button! If you only like to Move them to another host with the restore function, just click the Move button! On the following screen you will be asked to provide your ftp details for the remote host and url Website Url: - this will be the remote location web address, must start with http:// ot https:// Ftp hostname: - the ftp server address, can be an ip or web address Ftp username: - the ftp login username Ftp password: - the ftp login password Ftp directory: - the ftp directory where the clone(s) will be transfered for restore, needs to exists and be writeable, more details on what a ftp is here
After clicking the 'Continue' button the selected backups should get moved to the other location, and if you choosed the Clone option, the restore/ scripts will also get copied, and you will be prompted with a Continue link pointing to your remote website url http://restore_url.com/Joomla.Cloner.php, where the Joomla.Cloner.php is the restore script
2. The Manual restore mode
This process implies that: - you copy the clone(s) to the restore location, a directory in another location - you copy the restore scripts (located in your JoomlaCloner component archive in directory restore/) into the same restore location - launch http://restore_url/Joomla.Cloner.php in your browser
3. Remote Restoring , launching the Joomla.Cloner.php
At this point you have transfered the restore script and the backup to your restore location, and you are ready to restore it! After you launch Joomla.Cloner.php in your browser, you will see some configuration options that will allow the script to update the backup files with the new settings and also import the mysql backup into the new database 3a. Path configurations: - Install directory: - this path needs to indicate the full server path of where the backup will be restored to ( will replace $mosConfig_absolute_path in your configuration.php file) - Install Url: - this indicates the web adddress from where you are able to access the install directory from previous step, if you don't set it right you will get into template problems, to update it after restore you need to edit the $mosConfig_live_site variable in your configuration.php 3b. Mysql configuration: - the 'import mysql' controls whether you want to import the mysql backup or not, if unchecked, all other mysql settings are not needed - Mysql server: - will be the new mysql server address of the location where you are restoring - Mysql username: - the mysql username to access the database - Mysql password: - the mysql password for the selected username - Mysql database: - the database of where the mysql backup will be imported(needs to be created manually), for security reasons, if you are on the same server, use another database name than the original 3c. Choose clone archive to install: - from this drop down box you will need to select your backup to restore, just click it and select the desired one 3d. Files transfer and configuration: - this options allows you to select on how the files should be restored, with 2 options: - through a ftp sessions, which means that the script will attempt to connect to a ftp server from the provided ftp details and upload the files in the provided ftp directory; here you also have the option to choose whether the files should be transfered in an incremental transfer mode, meaning if the browser should refresh the connection after 100 files have been transfered - directly, the php script will write all the files on server, the only problem with this method would be that on some servers the owner and group of the files will get change to the apache default one, so to fix this you will need to contact your hosting support and ask them to change them for you, or else if you are allowed use this command through ssh (chown -R myuser directory, and chgrp -R mygroup directory) 3e. Preserve structure permissions: - if this is checked, the restore process will attempt to change the file permissions with the ones from the original server, the permissions file is kept in administrator/backups/perm.txt
After hitting submit, you should get a message like this: Backup restored...Configuration updated!All should be done! Click here to continue...
4. Possible run-time problems
Usually on the restore process you might run into this errors or problems:
- process stops before finishing - you need to increase the max_execution_time variable in your php.ini configuration file, and/or increase the memory_limit variable - The database details provided are incorrect and/or empty. Unable to connect to mysql - the provided mysql details were not right, you need to verify them again - Could not continue, unable to read the clone backup file - you didn't select any backup to restore from the drop down menu "Choose clone archive to install:" - Directory /home.../mydir/ is not writeable or does not exists! Could not continue... - you need to verify that your Install Url: exists and it has writing permissions - 500 error - this might be caused because: - the permissions are set to 777 on the file or directory you are in, you need to set them to 755, this only happen on some servers - you have a .htaccess in the present directory, you need to remove any code from it that's not supported by your host, usually replacing it with a default Joomla one will do the job
|
