Update backup location to safe directory (#653)

The previous directory may not share the same directory as the user that runs the container. `/etc/linkding/data` is a safe directory.

Fixes #626
This commit is contained in:
Bruno Henriques 2024-03-17 08:06:07 +00:00 committed by GitHub
parent 83c2530df4
commit fd1bbadcf3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,13 +25,13 @@ linkding includes a CLI command for creating a backup copy of the database.
To create a backup, execute the following command: To create a backup, execute the following command:
```shell ```shell
docker exec -it linkding python manage.py backup backup.sqlite3 docker exec -it linkding python manage.py backup /etc/linkding/data/backup.sqlite3
``` ```
This creates a `backup.sqlite3` file in the Docker container. This creates a `backup.sqlite3` file in the Docker container under `/etc/linkding/data`.
To copy the backup file to your host system, execute the following command: To copy the backup file to your host system, execute the following command:
```shell ```shell
docker cp linkding:/etc/linkding/backup.sqlite3 backup.sqlite3 docker cp linkding:/etc/linkding/data/backup.sqlite3 backup.sqlite3
``` ```
This copies the backup file from the Docker container to the current folder on your host system. This copies the backup file from the Docker container to the current folder on your host system.
Now you can move that file to your backup location. Now you can move that file to your backup location.