mirror of
https://github.com/sissbruecker/linkding.git
synced 2025-08-13 13:39:27 +02: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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user