diff --git a/FHEM/98_backup.pm b/FHEM/98_backup.pm new file mode 100644 index 0000000..172eba5 --- /dev/null +++ b/FHEM/98_backup.pm @@ -0,0 +1,127 @@ +################################################################ +# Developed with Kate +# +# (c) 2012-2021 Copyright: Martin Fischer (m_fischer at gmx dot de) +# Rewrite and Maintained by Marko Oldenburg since 2019 +# All rights reserved +# +# Contributors: +# - Marko Oldenburg (CoolTux - fhemdevelopment at cooltux dot net) +# +# This script free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# The GNU General Public License can be found at +# http://www.gnu.org/copyleft/gpl.html. +# A copy is found in the textfile GPL.txt and important notices to the license +# from the author is found in LICENSE.txt distributed with these scripts. +# +# This script is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# +# $Id$ +# +################################################################ + +package main; +use strict; +use warnings; +use FHEM::Meta; + +require FHEM::Core::Utils::FHEMbackup; + +##################################### +sub backup_Initialize { + + my %hash = ( + Fn => \&FHEM::Core::Utils::FHEMbackup::CommandBackup, + Hlp => ',create a backup of fhem configuration, state and modpath' + ); + + $cmds{backup} = \%hash; + + return FHEM::Meta::InitMod( __FILE__, \%hash ); +} + + +1; + +=pod +=item command +=item summary create a backup of the FHEM installation +=item summary_DE erzeugt eine Sicherungsdatei der FHEM Installation +=begin html + + +

backup

+ + +=end html + +=for :application/json;q=META.json 98_backup.pm +{ + "abstract": "Modul to retrieves apt information about Debian update state", + "x_lang": { + "de": { + "abstract": "Modul um apt Updateinformationen von Debian Systemen zu bekommen" + } + }, + "keywords": [ + "fhem-mod-device", + "fhem-core", + "backup", + "tar" + ], + "release_status": "stable", + "license": "GPL_2", + "author": [ + "Marko Oldenburg " + ], + "x_fhem_maintainer": [ + "CoolTux" + ], + "x_fhem_maintainer_github": [ + "LeonGaultier" + ], + "prereqs": { + "runtime": { + "requires": { + "FHEM": 5.00918799, + "perl": 5.016, + "Meta": 0 + }, + "recommends": { + }, + "suggests": { + } + } + } +} +=end :application/json;q=META.json + +=cut diff --git a/98_backup.pm b/lib/FHEM/Core/Utils/FHEMbackup.pm similarity index 79% rename from 98_backup.pm rename to lib/FHEM/Core/Utils/FHEMbackup.pm index 997ff29..87c6be0 100644 --- a/98_backup.pm +++ b/lib/FHEM/Core/Utils/FHEMbackup.pm @@ -28,27 +28,7 @@ # ################################################################ -package main; -use strict; -use warnings; -use FHEM::Meta; - -##################################### -sub backup_Initialize { - - my %hash = ( - Fn => \&FHEM::backup::CommandBackup, - Hlp => ',create a backup of fhem configuration, state and modpath' - ); - - $cmds{backup} = \%hash; - - return FHEM::Meta::InitMod( __FILE__, \%hash ); -} - -###################################### -## unserer packagename -package FHEM::backup; +package FHEM::Core::Utils::FHEMbackup; use strict; use warnings; @@ -334,78 +314,3 @@ sub addLogPathToPathnameArray { } 1; - -=pod -=item command -=item summary create a backup of the FHEM installation -=item summary_DE erzeugt eine Sicherungsdatei der FHEM Installation -=begin html - - -

backup

- - -=end html - -=for :application/json;q=META.json 98_backup.pm -{ - "abstract": "Modul to retrieves apt information about Debian update state", - "x_lang": { - "de": { - "abstract": "Modul um apt Updateinformationen von Debian Systemen zu bekommen" - } - }, - "keywords": [ - "fhem-mod-device", - "fhem-core", - "backup", - "tar" - ], - "release_status": "stable", - "license": "GPL_2", - "author": [ - "Marko Oldenburg " - ], - "x_fhem_maintainer": [ - "CoolTux" - ], - "x_fhem_maintainer_github": [ - "LeonGaultier" - ], - "prereqs": { - "runtime": { - "requires": { - "FHEM": 5.00918799, - "perl": 5.016, - "Meta": 0 - }, - "recommends": { - }, - "suggests": { - } - } - } -} -=end :application/json;q=META.json - -=cut