Server Migration

Community Support for Booked Scheduler
Post Reply
ootbs1
Posts: 12
Joined: Sat Aug 15, 2020 4:58 pm

Server Migration

Post by ootbs1 »

Hi,

We're switching to a new web-hosting provider. So, I'd like to know how to go about migrating Booked Scheduler from our existing shared Linux server, onto the new one..

User avatar
fzobitz
Posts: 32
Joined: Mon Jul 27, 2020 3:37 pm

Re: Server Migration

Post by fzobitz »

These instructions are assuming you are installing the same version on the new server as you have on your existing server.

1. Copy the booked files from the existing server to the new server.
2. Copy the database from the existing server to the new server.
3. If you want to test your new server before shutting off your existing server, you will need to change the path in the config file.
4. Likewise, the way you connect to the new database might be different, so you will need to make sure that connection works.
5. Clear the /tpl_c folder on the new server before you try logging in.

Given the fact that these instructions are for having two instances of booked running, I would make a reservation on your new server to see if it shows up on your existing instance. If it does, and you meant to move the database, then something isn't correct in your config file with your database connection on your new server.

Now, with all that being said, I would probably take this route:
1. On the new server, get booked up and running - new files, new database - completely fresh install.
2. Once that is working, then copy the existing database over and connect it to the new server.

If you have users attach files, then you will need to copy that directory.
If you have made any custom modifications, then you will need to duplicate those on the new server as well.

Basically, the process is to copy the files and hook up the database. Pay attention to your config file on your new server to make sure the path is correct to the application and to the database.

If you want to upgrade from one version to another, I would do that after everything is working on the new server.

As always, make copies of everything.
Last edited by fzobitz on Sat Jul 24, 2021 2:17 am, edited 1 time in total.

herby1620
Posts: 14
Joined: Tue Jul 28, 2020 9:32 pm

Re: Server Migration

Post by herby1620 »

The folder you should clear is /tpl_c (the template cache directory), not the /tpl (raw templates directory). I believe that clearing the /tpl directory wouldn't work out too well.

If you are updating from "major" versions (i.e. from 2.7.x to 2.8.x) there are changes to the database, and an update script needs to be run. See the file:
/readme_installation.html which has some explanations.

All files are form the base of the installation directory ...../booked

User avatar
fzobitz
Posts: 32
Joined: Mon Jul 27, 2020 3:37 pm

Re: Server Migration

Post by fzobitz »

Thanks for catching that. I have updated the instructions.

Post Reply