Migrating
From FileRun Documentation
You can use the following guide to move your FileRun from one server to the other:
- Copy FileRun's installation folder to the new server.
- Copy the users' home folders.
- If the MySQL connection information changes, open the file "/path-to-filerun/system/data/autoconfig.php" in a text editor and make the appropriate changes.
- If the filesystem structure will no longer be the same on the new server, a few paths will need to be updated inside the MySQL database to match the new locations:
- User's home folders:
- df_users_permissions.homefolder
- df_modules_user_roles.homefolder (only if you have roles configured)
- WebLinks:
- df_modules_weblinks.path (this table can be emptied if you wish to clear all WebLinks)
- Shared folders:
- df_modules_shares.path (this table can be emptied if you wish to unshare all folders)
- Metadata and file comments information:
- df_modules_metadata_files.path
- To automatically update all records of a table, you can use the following SQL query:
-
UPDATE <tablename> SET <pathcolumn> = REPLACE(<path-column>, '<old-path>', '<new-path>')
- Example:
- * Old path: /home/users/
- * New path: /files/
- * Query:
UPDATE df_users_permissions SET homefolder = REPLACE(homefolder, '/home/users/', '/files/')
- We recommend you to make a backup copy of the MySQL database before updating the paths.
- User's home folders:
- Check FileRun's control panel, "System configuration" section, for other paths that might need to be updated.
- Make sure the FileRun installation works without problems.
- Delete the previous FileRun copy.
- Make sure the users' home folders have been successfully copied and delete them from the original server.
