Updating from LAMP 7.3 to new LAMP package
-
Hello,
First, I am very glad to see that Cloudron now has a single LAMP package which allows changing the PHP version internal to that package. It was very frustrating when I had to change PHP versions previously and move my giant LAMP package to a new one involving days of downtime for my site.
Now, I'm looking at having to do that again. Is there any way to upgrade from a LAMP 7.3 package to the current LAMP package without shutting off my site, doing a backup, downloading the backup, and the uploading it to a new LAMP package?
The last time I had to manually migrate from one LAMP package to another there were many server errors because the site's database is so large and in the end Johannes had to make the migration for me (after 3 days of emailing back and forth).
If I can avoid that hassle at all, I would love to! -
@Nicolas
You can potentially avoid a lot of down time by installing the new lamp app at a temp location, move the files for the site, backup the sql database(s) (you can probably just use mysqldump for this if you use the mysql db) and import via phpmyadmin on the new app. Once that's done have the old app change to a temp location and the new app to the old location. Results may vary -
Make a backup and afterwards select "Clone from this backup". Clone to another URL, do the upgrade, change location for your original LAMP and move the cloned app to the original location. Downtime ~30 sec to 1 minute.
-
@subven This is a much better method than what I said.
-
I think OP is asking to upgrade from the very old LAMP 7.3 package to the new one i.e the appstore id has changed. This prevents "clone" from what working easily.
What you do to is:
- Backup
- Download the backup configuration
- Install the new LAMP package is some location
- Import from backup using the backup configuration in step 2 - https://docs.cloudron.io/backups/#import-app-backup
- Once, you are satisfied, you can delete the old app and also move the new app to whatever location you want.