From 5abbb63eb0d5b759f4b096cb7772c0f46ed7237b Mon Sep 17 00:00:00 2001 From: Eros Nardi Date: Sun, 7 Feb 2021 10:31:16 +0100 Subject: [PATCH] 0 --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 48a931e..a7be442 100644 --- a/README.md +++ b/README.md @@ -16,17 +16,29 @@ _Tested on my Raspberry Pi 4 with SWAG_ Just run the image publishing the port and setting the ENV variables, the shm dedicated and mounting the folder you wish to map. `docker run -d \` + ` --name=ZoneMinder \` + ` -p 443:443/tcp \` + ` -e TZ=Europe/Rome \` + ` -e SELFSIGNED=0 \` + ` -e FQDN=your.fqdn \` + ` --shm-size=1.5g \` + ` -v /mystorage/ZoneMinder/config:/config \` + ` -v /mystorage/ZoneMinder/zmcache:/var/cache/zoneminder \` + ` -v /mystorage/Swag/etc/letsencrypt/live:/sslcert/live \` + ` -v /mystorage/Swag/etc/letsencrypt/archive:/sslcert/archive \` + ` --restart unless-stopped \` + ` nardo86/zoneminder` The SELFSIGNED flag will , the FQDN will be used for configuring Apache2 and, in case of using the SWAG certificate, find the correct folder and the /config folder will contain msmtp and mysql configuration. @@ -39,12 +51,19 @@ To access the Zoneminder gui, browse to: https://your.fqdn:443/zm If you need to transfer your data from another instance this method worked for me https://forums.zoneminder.com/viewtopic.php?t=17071: Backup the old DB + `root@oldSystem# mysqldump -p zm > /config/zm-dbbackup.sql` + Restore into the new DB + `root@newSystem# mysql -p zm < /config/zm-dbbackup.sql` + Sync folders + `root@newSystem# rsync -r -t -p -o -g -v --progress --delete user@oldSystem:/var/cache/zoneminder/* /var/cache/zoneminder/` + Init / cleanup + `root@newSystem# zmaudit.pl`