Migration Pydio 6 to Pydio 7 with YUMCreated on 2023/01/24,
In this how-to, you will find the steps to do the migration and upgrade from Pydio 6 to pydio 7 on another machine base on CentOS 7.
- Install latest version Pydio on new machine
- Migrate Database
- Migrate data folder
- Test and finalize
Install Pydio PHP latest version on CentOS 7:
Another option is using virtual machine image (OVF). You can also download this file from https://pydio.com
Tip: On CentOS 7, there are a lot of issues with selinux, it could be better if you disable selinux during installation & testing. Use this command:
On new machine, create a new database using following command:
create database pydioold; grant all privileges on pydioold.* to 'pydio'@'localhost'; flush privileges;
Before exporting the db, please try to set Settings > Main Options > Server URL to blank value
On old machine, export all data in DB by using
mysqldump -u username -p databasename > pydio6.mysql
Copy pydio6.mysql file to new machine
Import to pydioold database:
mysql -u pydio -p pydioold < pydio6.mysql
Execute some scripts to update pydioold database from version 6 to version 7:
Just copy and paste to terminal of mysql
If you install Pydio by using yum, all data is located in: /var/lib/pydio
On new machine, backup this folder
mv /var/lib/pydio /var/lib/pydio.latest
Copy recursively /var/lib/pydio from old machine to /var/lib/pydio on new machine.
(Visit this link to set permission correctly: https://pydio.com/en/docs/kb/security/permission-pydio%E2%80%99s-filesfo...)
Delete some cache file on new machine:
rm -rf /var/cache/pydio/plugins_*
Backup and edit /var/lib/pydio/plugins/boot.conf/bootstrap.json file to use new mysql connection (server, username, password, and database name - pydioold) or rename pydioold to other convenient name.
Try to browse pydio by using new machine. If you have any problem with url, maybe this link is useful: https://pydio.com/en/docs/kb/miscellaneous/fix-public-link-after-upgradi...