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.zip

Copy the backup to your host system

docker cp linkding:/etc/linkding/data/backup.zip backup.zip

Set 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:

  1. Extract the Backup File:

    • Extract the backup.zip file.
    • Ensure the extracted folder contains the db.sqlite3 file and other assets (if applicable).
  2. Rename the Folder:

    • Rename the extracted folder to data.
  3. Mount the Folder to /etc/linkding/data:

    • When starting the Docker container, mount the data folder to /etc/linkding/data using the following command:
      docker run -d \
        --name linkding \
        -v /path/to/local/data:/etc/linkding/data \
        -p 9090:9090 \
        sissbruecker/linkding
      Replace /path/to/local/data with the absolute path to your data folder.