baba888 Posted February 28, 2023 Share Posted February 28, 2023 Hi all, I have an older version of prestashop and I am a bit worried to upgrade a prestashop module. What is the best way to reverse a module update please? As I would like to try the update and it if fails, reverse it to the previous version. What shall I save via ftp to protect myself against a bad update? Thank you, Link to comment Share on other sites More sharing options...
Prestachamps Posted February 28, 2023 Share Posted February 28, 2023 Hi, You can save the current version from FTP, then upgrade the modules, and if that doesn't work, you can reinstall the previous version. You must save the modules folder and create .zip file from it. Have a nice day. Kind regards, Leo Link to comment Share on other sites More sharing options...
baba888 Posted February 28, 2023 Author Share Posted February 28, 2023 Thanks @Prestachamps for the reply. Just to make sure I understood, only the modules folder has to be saved. But will updating a new module not change certain db table? Does it means that reuploading an old module will reverse the db changes too? This is the part I am not sure about. Thanks Link to comment Share on other sites More sharing options...
NPO Posted February 28, 2023 Share Posted February 28, 2023 Backup everything !! - everything - database and files. (Make sure the backups are working before you start). It does depend on the module but many will make changes somewhere else or change a config somewhere and cause errors or changes that you will not be able to correct (because they are very difficult to find). Make sure you can roll-back to the live version that is working now. Then try just updating the module and if that fails restoring from the file backup (just the module files) but be ready with the roll back just in case. Link to comment Share on other sites More sharing options...
baba888 Posted February 28, 2023 Author Share Posted February 28, 2023 I wished there were a better way to do this because when your website has sales each day and you have to reload everything, you lose all these sales and stock differences. Link to comment Share on other sites More sharing options...
JBW Posted March 1, 2023 Share Posted March 1, 2023 Create a clone of your shop to have a test instance - then do the update there and test carefully before doing same on the live shop. Always do backups before doing any updates in the live shop. Link to comment Share on other sites More sharing options...
TTH Posted July 11, 2024 Share Posted July 11, 2024 Best practice for me is resore my instance of the Server in complete, in case you have the rights and privilegues. Restore from last nights backup just takes 5 minutes to go and Prestashop looks like before you initialise any modules installation or upgrades - files and databases. Upgrades and new installations in our shop will be done, when no customers are in and so no order will be missing. hope that helps keeping lot of time and troubles Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now