add support for backupToRestore

This commit is contained in:
Marko Oldenburg 2020-06-17 16:58:14 +02:00
parent f9530e6cd3
commit 1326aa0a34

View File

@ -64,6 +64,7 @@ BEGIN {
InternalVal
gettimeofday
ResolveDateWildcards
readingsSingleUpdate
attr
Log
fhemForked
@ -119,8 +120,17 @@ sub CommandBackup {
@all{@pathname}=1;
@pathname = keys %all;
# create archiv
### create archiv
$ret = createArchiv( $backupdir, $cl, $byUpdate, $dateTime );
### support for backupToStorage Modul
readingsSingleUpdate($defs{join(' ',
devspec2array('TYPE=backupToStorage'))}
, 'fhemBackupFile'
, "$backupdir/FHEM-$dateTime.tar.gz"
, 0
)
if ( devspec2array('TYPE=backupToStorage') > 0 );
@pathname = [];
undef @pathname;