Linkding
Linkding
User Management
Create an administrator account:
docker exec -it linkding python manage.py createsuperuser --username=joe [email protected]You’ll be prompted to set a password for the new user.
Data Backup
Create a full backup (recommended method)
docker exec -it linkding python manage.py full_backup /etc/linkding/data/backup.zipCopy the backup to your host system
docker cp linkding:/etc/linkding/data/backup.zip backup.zipSet up a cron job for weekly backups (runs every Sunday at 1 AM):
0 1 * * 0 docker exec linkding python manage.py full_backup /etc/linkding/data/backup-$(date +\%Y\%m\%d).zip && docker cp linkding:/etc/linkding/data/backup-$(date +\%Y\%m\%d).zip /path/to/backup/location/Data Restoration
To restore from a full backup, follow these steps:
Extract the Backup File:
- Extract the
backup.zipfile. - Ensure the extracted folder contains the
db.sqlite3file and other assets (if applicable).
- Extract the
Rename the Folder:
- Rename the extracted folder to
data.
- Rename the extracted folder to
Mount the Folder to
/etc/linkding/data:- When starting the Docker container, mount the
datafolder to/etc/linkding/datausing the following command:Replacedocker run -d \ --name linkding \ -v /path/to/local/data:/etc/linkding/data \ -p 9090:9090 \ sissbruecker/linkding/path/to/local/datawith the absolute path to yourdatafolder.
- When starting the Docker container, mount the
Last updated on