mirror of
https://github.com/sissbruecker/linkding
synced 2024-11-10 06:04:15 +00:00
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:
parent
83c2530df4
commit
fd1bbadcf3
1 changed files with 3 additions and 3 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue