How to restore my backup
Posted
#5180
(In Topic #1044)
I made a backup of my website before it corrupts, I got 2 files : cms_config & all_db
How to restore my backups to my composr cms website ?
Posted
Posted
The link provided is for the website backup, I have already done this step, but I need the ((restore)) backup.
Posted
A Composr backup consists of a .tar file (or .tar.gz file), which is an archive that contains:
- The actual website files (including both Composr code and custom files such as uploads). This is not actually included if you chose 'Database backup only'.
- A readme.txt file that explains how to restore the backup.
- A restore.php, which is a self-executing PHP script to restore the previous database.
- A restore_data.php file that contains the actual database structure and contents. This can not be directly executed, but is saved as a PHP file to stop hackers being able to download the contents of your database by accessing the URL. The data from restore_data.php can only be restored using restore.php because it is in a custom Composr format, not a traditional SQL dump format.
When you generate a backup from Admin Zone > Tools > Make backup, it is not automatically downloaded to your computer. You will see a table showing all the backup files, and must download them to your computer if you want to keep a remote backup.
It is important to keep the files and database consistent. For example, if you install an addon, and then end up restoring a database from before the addon was installed, you may get errors due to the database structure being inconsistent with the website code (e.g. missing database tables). This is a mistake we see many people making.
Posted
KingBast said
I am going to update this backup tutorial our ours because it is badly outdated.
1 guest and 0 members have recently viewed this.
