How to restore my backup
Posted
#5595
(In Topic #1300)
Standard member

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
Standard member

I am wondering nobody knows the answer !
Posted
Site staff

Posted
Standard member

The link provided is for the website backup, I have already done this step, but I need the ((restore)) backup.
Posted
Site director

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.
Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon
- If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
- If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
- If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
- If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Posted
Site director

KingBast said
Composr Tutorial: Backing up your site - Composr may be of assistance to you
From “Post #5,597”, 17th February 2019, 12:07 pm
I am going to update this backup tutorial our ours because it is badly outdated.
Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon
- If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
- If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
- If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
- If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Posted
Standard member

Thank you for your assistant on IRC.
My website is working now.
1 guest and 0 members have just viewed this.

