From fd1bbadcf31dd12177b8716f1ef7ed591fd81add Mon Sep 17 00:00:00 2001 From: Bruno Henriques <4727729+bphenriques@users.noreply.github.com> Date: Sun, 17 Mar 2024 08:06:07 +0000 Subject: [PATCH] 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 --- docs/backup.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/backup.md b/docs/backup.md index b7f95ba..03a1494 100644 --- a/docs/backup.md +++ b/docs/backup.md @@ -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: ```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: ```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. Now you can move that file to your backup location.