diff --git a/FHEM/98_backupToStorage.pm b/FHEM/98_backupToStorage.pm
index 28e6788..7833b4f 100644
--- a/FHEM/98_backupToStorage.pm
+++ b/FHEM/98_backupToStorage.pm
@@ -1,8 +1,8 @@
###############################################################################
#
-# Developed with Kate
+# Developed with VSCodium and richterger perl plugin
#
-# (c) 2020-2021 Copyright: Marko Oldenburg (fhemdevelopment@cooltux.net)
+# (c) 2020-2023 Copyright: Marko Oldenburg (fhemdevelopment at cooltux dot net)
# All rights reserved
#
# Special thanks goes to:
@@ -29,28 +29,33 @@
#
###############################################################################
-package main;
+package FHEM::backupToStorage;
use strict;
use warnings;
use utf8;
use FHEM::Meta;
-use FHEM::Services::backupToStorage;
+require FHEM::Services::backupToStorage;
-sub backupToStorage_Initialize {
+#-- Run before package compilation
+BEGIN {
+ sub ::backupToStorage_Initialize { goto &Initialize }
+}
+
+sub Initialize {
my $hash = shift;
## Da ich mit package arbeite müssen in die Initialize für die jeweiligen hash Fn Funktionen der Funktionsname
# und davor mit :: getrennt der eigentliche package Name des Modules
- $hash->{SetFn} = \&FHEM::Services::backupToStorage::Set;
- $hash->{DefFn} = \&FHEM::Services::backupToStorage::Define;
- $hash->{NotifyFn} = \&FHEM::Services::backupToStorage::Notify;
- $hash->{UndefFn} = \&FHEM::Services::backupToStorage::Undef;
- $hash->{AttrFn} = \&FHEM::Services::backupToStorage::Attr;
- $hash->{RenameFn} = \&FHEM::Services::backupToStorage::Rename;
- $hash->{DeleteFn} = \&FHEM::Services::backupToStorage::Delete;
- $hash->{ShutdownFn} = \&FHEM::Services::backupToStorage::Shutdown;
+ $hash->{SetFn} = \&FHEM::Services::backupToStorage::Set;
+ $hash->{DefFn} = \&FHEM::Services::backupToStorage::Define;
+ $hash->{NotifyFn} = \&FHEM::Services::backupToStorage::Notify;
+ $hash->{UndefFn} = \&FHEM::Services::backupToStorage::Undef;
+ $hash->{AttrFn} = \&FHEM::Services::backupToStorage::Attr;
+ $hash->{RenameFn} = \&FHEM::Services::backupToStorage::Rename;
+ $hash->{DeleteFn} = \&FHEM::Services::backupToStorage::Delete;
+ $hash->{ShutdownFn} = \&FHEM::Services::backupToStorage::Shutdown;
$hash->{NotifyOrderPrefix} = '51-'; # Order Nummer für NotifyFn
$hash->{AttrList} =
'bTS_Host '
@@ -76,13 +81,14 @@ sub backupToStorage_Initialize {
=begin html
-
+
backupToStorage
The module offers the possibility to automatically load the created backup files from the backup module onto a storage.
- Define
+
+ Define
define <name> backupToStorage
@@ -92,28 +98,46 @@ sub backupToStorage_Initialize {
-
- Attributs
+
+ Attributs
- - bTS_Host - Server name where the storage is located
- - bTS_User - remote user for login
- - bTS_Path - remote path where the upload file should go. e.g. Nextcloud </FHEM-Backup>
- - bTS_Type - Storage Type, default is Nextcloud
+
+ - bTS_Host
+ Server name where the storage is located
+
+
+ - bTS_User
+ remote user for login
+
+
+ - bTS_Path
+ remote path where the upload file should go. e.g. Nextcloud </FHEM-Backup>
+
+
+ - bTS_Type
+ Storage Type, default is Nextcloud
+
-
- Set
+
+ Set
- - addpassword - puts the storage password in the keyfile / !!! don't use = !!!
- - deletepassword - removes the storage password from the keyfile
+
+ - addpassword
+ puts the storage password in the keyfile / !!! don't use = !!!
+
+
+ - deletepassword
+ removes the storage password from the keyfile
+
-
+
Readings
- - state - shows the current status of the module
- - fhemBackupFile - the path of the last backup file is automatically set by the backup module
- - uploadState - Status of the last upload.
+ - state - shows the current status of the module
+ - fhemBackupFile - the path of the last backup file is automatically set by the backup module
+ - uploadState - Status of the last upload.
@@ -121,13 +145,14 @@ sub backupToStorage_Initialize {
=begin html_DE
-
+
backupToStorage
Das Modul bietet die Möglichkeit die erstellten Backupdateien vom Modul backup automatisiert auf ein Storage zu laden.
- Define
+
+ Define
define <name> backupToStorage
@@ -137,29 +162,46 @@ sub backupToStorage_Initialize {
-
- Attribute
+
+ Attribute
- - bTS_Host - Servername wo sich das Storage drauf befindet
- - bTS_User - remote User für den Login
- - bTS_Path - remote Path wohin das uploadfile soll. z.B. Nextcloud </FHEM-Backup>
- - bTS_Type - Storage Type, default ist Nextcloud
- - bTS_Type - Storage Type, default ist Nextcloud
+
+ - bTS_Host
+ Servername wo sich das Storage drauf befindet
+
+
+ - bTS_User
+ remote User für den Login
+
+
+ - bTS_Path
+ remote Path wohin das uploadfile soll. z.B. Nextcloud </FHEM-Backup>
+
+
+ - bTS_Type
+ Storage Type, default ist Nextcloud
+
-
- Set
+
+ Set
- - addpassword - setzt das Storage Passwort ins Keyfile / !!!Keine = verwenden!!!
- - deletepassword - entfernt das Storage Passwort aus dem Keyfile
+
+ - addpassword
+ setzt das Storage Passwort ins Keyfile / !!!Keine = verwenden!!!
+
+
+ - deletepassword
+ entfernt das Storage Passwort aus dem Keyfile
+
-
- Readings
+
+ Readings
- - state - zeigt den aktuellen Status des Modules an
- - fhemBackupFile - der Pfad des letzten Backupfiles, wird automatisch vom backup Modul gesetzt
- - uploadState - Status des letzten uploads.
+ - state - zeigt den aktuellen Status des Modules an
+ - fhemBackupFile - der Pfad des letzten Backupfiles, wird automatisch vom backup Modul gesetzt
+ - uploadState - Status des letzten uploads.
@@ -181,7 +223,7 @@ sub backupToStorage_Initialize {
],
"release_status": "devepolment",
"license": "GPL_2",
- "version": "v1.4.0",
+ "version": "v2.0.0",
"author": [
"Marko Oldenburg "
],
@@ -189,7 +231,7 @@ sub backupToStorage_Initialize {
"CoolTux"
],
"x_fhem_maintainer_github": [
- "LeonGaultier"
+ "CoolTuxNet"
],
"prereqs": {
"runtime": {
diff --git a/controls_backupToStorage.txt b/controls_backupToStorage.txt
index 54c8724..86c859f 100644
--- a/controls_backupToStorage.txt
+++ b/controls_backupToStorage.txt
@@ -1,2 +1,2 @@
-UPD 2022-03-10_06:48:27 6511 FHEM/98_backupToStorage.pm
-UPD 2022-03-10_08:41:03 23352 lib/FHEM/Services/backupToStorage.pm
+UPD 2023-01-05_20:43:08 7708 FHEM/98_backupToStorage.pm
+UPD 2023-01-05_20:06:46 23352 lib/FHEM/Services/backupToStorage.pm