Move Events with Filter / wrong date
Posted: Sun May 05, 2019 1:35 pm
Hi,
I use zm 1.32.3 with gentoo.
In my system I use a SSD to save the actual events of my 8 Reolink-Cameras.
Because the SSD is only 1TB and I want to save the events 2 weeks I use a additional SATA-Drive
with 5TB.
To move the events from SSD to SATA I created a filter
| 25 | MoveSSDtoHDD | {"terms":[{"attr":"DiskPercent","op":">=","val":"50"},{"cnj":"and","attr":"StorageId","op":"=","val":"2"}],"sort_field":"Id","sort_asc":"1","limit":"10"}
After the Video was moved an If the move was not on the same day the event is created
(storage scheme is medium) the event Start-Times changes in Database to the "copy" date
and will not be found by zmconsole on disk
MariaDB [zm]> select ID,StartTime,EndTime,Frames,DiskSpace from Events where id = "82896";
+-------+---------------------+---------------------+--------+-----------+
| ID | StartTime | EndTime | Frames | DiskSpace |
+-------+---------------------+---------------------+--------+-----------+
| 82896 | 2019-05-03 04:50:22 | 2019-05-01 18:42:55 | 34 | 141254665 |
+-------+---------------------+---------------------+--------+-----------+
Maybe the "Update Disk Space"-Filter did this "Job"?!
Is it possible that ths the "move" is a "copy" (new file on Disk) and so the "update Disk Space" will
change the creation date ... and later on delete teh event?
Hope someone can help
Regards
gentoo
I use zm 1.32.3 with gentoo.
In my system I use a SSD to save the actual events of my 8 Reolink-Cameras.
Because the SSD is only 1TB and I want to save the events 2 weeks I use a additional SATA-Drive
with 5TB.
To move the events from SSD to SATA I created a filter
| 25 | MoveSSDtoHDD | {"terms":[{"attr":"DiskPercent","op":">=","val":"50"},{"cnj":"and","attr":"StorageId","op":"=","val":"2"}],"sort_field":"Id","sort_asc":"1","limit":"10"}
After the Video was moved an If the move was not on the same day the event is created
(storage scheme is medium) the event Start-Times changes in Database to the "copy" date
and will not be found by zmconsole on disk
MariaDB [zm]> select ID,StartTime,EndTime,Frames,DiskSpace from Events where id = "82896";
+-------+---------------------+---------------------+--------+-----------+
| ID | StartTime | EndTime | Frames | DiskSpace |
+-------+---------------------+---------------------+--------+-----------+
| 82896 | 2019-05-03 04:50:22 | 2019-05-01 18:42:55 | 34 | 141254665 |
+-------+---------------------+---------------------+--------+-----------+
Maybe the "Update Disk Space"-Filter did this "Job"?!
Is it possible that ths the "move" is a "copy" (new file on Disk) and so the "update Disk Space" will
change the creation date ... and later on delete teh event?
Hope someone can help
Regards
gentoo