1
0
Fork 0
mirror of https://github.com/overleaf/toolkit.git synced 2025-04-19 07:18:06 +02:00

docs: moving the data directory

When moving the data directory of an existing deployment, one needs to be careful to remove the existing containers (`bin/stop` is not enough).

A use case for moving the data directory of an existing deployment is, for example, to move it to a more frequently backed-up location when the user base of the service grows.
This commit is contained in:
Leopold Talirz 2024-11-29 09:30:22 +01:00 committed by GitHub
parent 7f10105a9b
commit 6aa0e04ded
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -46,3 +46,14 @@ services:
volumes:
- redis-data:/data
```
## Moving the data directory
If you want to move the data directory of an existing deployment to a different location, run the following commands from the `overleaf-tookit` repository:
1. `bin/stop` to stop the overleaf service
2. `bin/docker-compose rm mongo sharelatex redis` to remove the containers
3. adjust the paths in the `config/overleaf.rc` configuration file (or leave the relative paths and just move the entire `overleaf-toolkit` directory)
4. `bin/init` and `bin/start` to start the overleaf service again
Note: Step 2 is required, since the old mount path of the data directory is stored in the stopped containers and will not update when they are restarted.