Skip to content

Restoring backup files

Josh Miller edited this page Jul 23, 2024 · 16 revisions

Important first is to stop the changedetection.io instance, as it will be monitoring and writing to the disk.

docker kill changedetection

Change the path in BACKUP_PATH to be the FULL path to the export backup Zip file

export BACKUP_PATH=/home/dgtlmoon/Downloads/changedetection-backup-1616751572.zip

docker run -v changedetectionio_changedetection-data:/datastore -v $BACKUP_PATH:/backup.zip python:3.8-slim bash -c "apt-get update && apt-get install unzip -y; unzip -o /backup.zip -d /datastore"

then restart

docker restart changedetection

NOTE: To run with Windows PowerShell:

$Env:BACKUP_PATH="C:\path\to\your\backup\changedetection-backup-1616751572.zip"

docker run -v changedetectionio_changedetection-data:/datastore -v ${Env:BACKUP_PATH}:/backup.zip python:3.8-slim bash -c "apt-get update && apt-get install unzip -y; unzip -o /backup.zip -d /datastore"