Skip to content

Restoring backup files

Josh Miller edited this page Jul 22, 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: If you are running on a Windows machine using Powershell 7 it does not allow the 'export' command above. Instead you can put the path to your backup file directly in the docker run command as follows:

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

Clone this wiki locally