kopia lustrzana https://github.com/dgtlmoon/changedetection.io
16
Restoring backup files
Josh Miller edytuje tę stronę 2024-07-23 09:51:37 -04:00
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"