add condition for readings age from fhemBackupFile
no backup to storage then backup befor update run
This commit is contained in:
parent
57d95d6141
commit
2aa7914642
@ -1,2 +1,2 @@
|
||||
UPD 2020-06-19_08:32:08 6090 FHEM/98_backupToStorage.pm
|
||||
UPD 2020-10-15_13:36:39 15631 lib/FHEM/backupToStorage.pm
|
||||
UPD 2020-10-15_13:53:07 15705 lib/FHEM/backupToStorage.pm
|
||||
|
@ -321,6 +321,10 @@ sub PushToStorage {
|
||||
|
||||
Log3( $name, 4, "backupToStorage ($name) - push to storage function" );
|
||||
|
||||
return
|
||||
if (ReadingsAge($name,'fhemBackupFile',60) > 5) );
|
||||
|
||||
|
||||
require "SubProcess.pm";
|
||||
my $subprocess = SubProcess->new( { onRun => \&FileUpload } );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user