From faf9ae3c98f95a42661c796e8797d0bbe02d48a5 Mon Sep 17 00:00:00 2001 From: Marco van Wieringen Date: Tue, 28 Oct 2014 10:27:07 +0100 Subject: [PATCH] Add proper headers to python scripts. --- src/plugins/dird/bareos-dir.py.template | 21 ++++++++++++++++ src/plugins/dird/bareos_dir_consts.py | 21 ++++++++++++++++ src/plugins/filed/BareosFdPluginBaseclass.py | 24 +++++++++++++++--- .../filed/BareosFdPluginLocalFileset.py | 25 ++++++++++++++++--- src/plugins/filed/BareosFdWrapper.py | 21 ++++++++++++++++ src/plugins/filed/bareos-fd-local-fileset.py | 22 ++++++++++++++++ src/plugins/filed/bareos-fd-mock-test.py | 21 ++++++++++++++++ src/plugins/filed/bareos-fd.py.template | 21 ++++++++++++++++ src/plugins/filed/bareos_fd_consts.py | 21 ++++++++++++++++ src/plugins/stored/bareos-sd.py.template | 21 ++++++++++++++++ src/plugins/stored/bareos_sd_consts.py | 21 ++++++++++++++++ 11 files changed, 232 insertions(+), 7 deletions(-) diff --git a/src/plugins/dird/bareos-dir.py.template b/src/plugins/dird/bareos-dir.py.template index 89b183646a8..27c3393cbf3 100644 --- a/src/plugins/dird/bareos-dir.py.template +++ b/src/plugins/dird/bareos-dir.py.template @@ -1,3 +1,24 @@ +# BAREOS® - Backup Archiving REcovery Open Sourced +# +# Copyright (C) 2013-2014 Bareos GmbH & Co. KG +# +# This program is Free Software; you can redistribute it and/or +# modify it under the terms of version three of the GNU Affero General Public +# License as published by the Free Software Foundation, which is +# listed in the file LICENSE. +# +# This program 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 +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +# 02110-1301, USA. +# +# Author: Marco van Wieringen +# from bareosdir import * from bareos_dir_consts import * diff --git a/src/plugins/dird/bareos_dir_consts.py b/src/plugins/dird/bareos_dir_consts.py index 6673c8e4ffe..c715d1c4ed1 100644 --- a/src/plugins/dird/bareos_dir_consts.py +++ b/src/plugins/dird/bareos_dir_consts.py @@ -1,3 +1,24 @@ +# BAREOS® - Backup Archiving REcovery Open Sourced +# +# Copyright (C) 2013-2014 Bareos GmbH & Co. KG +# +# This program is Free Software; you can redistribute it and/or +# modify it under the terms of version three of the GNU Affero General Public +# License as published by the Free Software Foundation, which is +# listed in the file LICENSE. +# +# This program 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 +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +# 02110-1301, USA. +# +# Author: Marco van Wieringen +# bJobMessageType = dict( M_ABORT = 1, M_DEBUG = 2, diff --git a/src/plugins/filed/BareosFdPluginBaseclass.py b/src/plugins/filed/BareosFdPluginBaseclass.py index 2a202fddcbe..0bdd612315d 100644 --- a/src/plugins/filed/BareosFdPluginBaseclass.py +++ b/src/plugins/filed/BareosFdPluginBaseclass.py @@ -1,10 +1,28 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- - +# BAREOS® - Backup Archiving REcovery Open Sourced +# +# Copyright (C) 2014-2014 Bareos GmbH & Co. KG +# +# This program is Free Software; you can redistribute it and/or +# modify it under the terms of version three of the GNU Affero General Public +# License as published by the Free Software Foundation, which is +# listed in the file LICENSE. +# +# This program 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 +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +# 02110-1301, USA. +# +# Author: Maik Aussendorf +# # Baseclass for Bareos python plugins # Functions taken and adapted from bareos-fd.py -# (c) Bareos GmbH & Co. KG, Maik Aussendorf -# AGPL v.3 import bareosfd from bareos_fd_consts import bVariable, bFileType, bRCs, bCFs diff --git a/src/plugins/filed/BareosFdPluginLocalFileset.py b/src/plugins/filed/BareosFdPluginLocalFileset.py index 92d8e52a994..1496c51dc80 100644 --- a/src/plugins/filed/BareosFdPluginLocalFileset.py +++ b/src/plugins/filed/BareosFdPluginLocalFileset.py @@ -1,11 +1,28 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- - +# BAREOS® - Backup Archiving REcovery Open Sourced +# +# Copyright (C) 2014-2014 Bareos GmbH & Co. KG +# +# This program is Free Software; you can redistribute it and/or +# modify it under the terms of version three of the GNU Affero General Public +# License as published by the Free Software Foundation, which is +# listed in the file LICENSE. +# +# This program 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 +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +# 02110-1301, USA. +# +# Author: Maik Aussendorf +# # Bareos python plugins class that adds files from a local list to # the backup fileset -# (c) Bareos GmbH & Co. KG -# AGPL v.3 -# Author: Maik Aussendorf import bareosfd from bareos_fd_consts import bJobMessageType, bFileType, bRCs diff --git a/src/plugins/filed/BareosFdWrapper.py b/src/plugins/filed/BareosFdWrapper.py index e61bcb6f80f..9dfbabe8528 100644 --- a/src/plugins/filed/BareosFdWrapper.py +++ b/src/plugins/filed/BareosFdWrapper.py @@ -1,5 +1,26 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +# BAREOS® - Backup Archiving REcovery Open Sourced +# +# Copyright (C) 2014-2014 Bareos GmbH & Co. KG +# +# This program is Free Software; you can redistribute it and/or +# modify it under the terms of version three of the GNU Affero General Public +# License as published by the Free Software Foundation, which is +# listed in the file LICENSE. +# +# This program 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 +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +# 02110-1301, USA. +# +# Author: Maik Aussendorf +# # The BareosFdWrapper module. Here is a global object bareos_fd_plugin_object # and wrapper functions, which are directly called out of the bareos-fd. They # are intended to pass the call to a method of an object of type diff --git a/src/plugins/filed/bareos-fd-local-fileset.py b/src/plugins/filed/bareos-fd-local-fileset.py index 870033f1994..cca05df1c98 100644 --- a/src/plugins/filed/bareos-fd-local-fileset.py +++ b/src/plugins/filed/bareos-fd-local-fileset.py @@ -1,8 +1,30 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +# BAREOS® - Backup Archiving REcovery Open Sourced +# +# Copyright (C) 2014-2014 Bareos GmbH & Co. KG +# +# This program is Free Software; you can redistribute it and/or +# modify it under the terms of version three of the GNU Affero General Public +# License as published by the Free Software Foundation, which is +# listed in the file LICENSE. +# +# This program 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 +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +# 02110-1301, USA. +# # Bareos-fd-local-fileset a simple example for a python Bareos FD Plugin using # BareosFdPluginLocalFileset. The plugin argument 'filename' is used to read # all files listed in that file and add it to the fileset +# +# Author: Maik Aussendorf +# # Provided by the Bareos FD Python plugin interface import bareos_fd_consts diff --git a/src/plugins/filed/bareos-fd-mock-test.py b/src/plugins/filed/bareos-fd-mock-test.py index 0385b0b0a23..216f270cbb9 100644 --- a/src/plugins/filed/bareos-fd-mock-test.py +++ b/src/plugins/filed/bareos-fd-mock-test.py @@ -1,5 +1,26 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +# BAREOS® - Backup Archiving REcovery Open Sourced +# +# Copyright (C) 2014-2014 Bareos GmbH & Co. KG +# +# This program is Free Software; you can redistribute it and/or +# modify it under the terms of version three of the GNU Affero General Public +# License as published by the Free Software Foundation, which is +# listed in the file LICENSE. +# +# This program 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 +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +# 02110-1301, USA. +# +# Author: Maik Aussendorf +# # Bareos-fd-mock-test a simple example for a python Bareos FD Plugin using the baseclass # and doing nothing # You may take this as a skeleton for your plugin diff --git a/src/plugins/filed/bareos-fd.py.template b/src/plugins/filed/bareos-fd.py.template index a4535f89516..d422ec7b2f5 100644 --- a/src/plugins/filed/bareos-fd.py.template +++ b/src/plugins/filed/bareos-fd.py.template @@ -1,3 +1,24 @@ +# BAREOS® - Backup Archiving REcovery Open Sourced +# +# Copyright (C) 2013-2014 Bareos GmbH & Co. KG +# +# This program is Free Software; you can redistribute it and/or +# modify it under the terms of version three of the GNU Affero General Public +# License as published by the Free Software Foundation, which is +# listed in the file LICENSE. +# +# This program 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 +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +# 02110-1301, USA. +# +# Author: Marco van Wieringen +# from bareosfd import * from bareos_fd_consts import * from io import open diff --git a/src/plugins/filed/bareos_fd_consts.py b/src/plugins/filed/bareos_fd_consts.py index 9d832a66d2f..19ce29d0a96 100644 --- a/src/plugins/filed/bareos_fd_consts.py +++ b/src/plugins/filed/bareos_fd_consts.py @@ -1,3 +1,24 @@ +# BAREOS® - Backup Archiving REcovery Open Sourced +# +# Copyright (C) 2013-2014 Bareos GmbH & Co. KG +# +# This program is Free Software; you can redistribute it and/or +# modify it under the terms of version three of the GNU Affero General Public +# License as published by the Free Software Foundation, which is +# listed in the file LICENSE. +# +# This program 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 +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +# 02110-1301, USA. +# +# Author: Marco van Wieringen +# bJobMessageType = dict( M_ABORT = 1, M_DEBUG = 2, diff --git a/src/plugins/stored/bareos-sd.py.template b/src/plugins/stored/bareos-sd.py.template index d6f7e729b42..dfd67b32fd3 100644 --- a/src/plugins/stored/bareos-sd.py.template +++ b/src/plugins/stored/bareos-sd.py.template @@ -1,3 +1,24 @@ +# BAREOS® - Backup Archiving REcovery Open Sourced +# +# Copyright (C) 2013-2014 Bareos GmbH & Co. KG +# +# This program is Free Software; you can redistribute it and/or +# modify it under the terms of version three of the GNU Affero General Public +# License as published by the Free Software Foundation, which is +# listed in the file LICENSE. +# +# This program 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 +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +# 02110-1301, USA. +# +# Author: Marco van Wieringen +# from bareossd import * from bareos_sd_consts import * diff --git a/src/plugins/stored/bareos_sd_consts.py b/src/plugins/stored/bareos_sd_consts.py index 23a54bb0eda..e6590413cb8 100644 --- a/src/plugins/stored/bareos_sd_consts.py +++ b/src/plugins/stored/bareos_sd_consts.py @@ -1,3 +1,24 @@ +# BAREOS® - Backup Archiving REcovery Open Sourced +# +# Copyright (C) 2013-2014 Bareos GmbH & Co. KG +# +# This program is Free Software; you can redistribute it and/or +# modify it under the terms of version three of the GNU Affero General Public +# License as published by the Free Software Foundation, which is +# listed in the file LICENSE. +# +# This program 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 +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +# 02110-1301, USA. +# +# Author: Marco van Wieringen +# bJobMessageType = dict( M_ABORT = 1, M_DEBUG = 2,