Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

move holland.backup.script under common plugin package

  • Loading branch information...
commit 7d8b06288384fbe8d8af1464e6ed8af2734c80bd 1 parent b5e7c0e
@abg authored
View
0  ....backup.script/holland/backup/__init__.py → plugins/common/holland/common/__init__.py
File renamed without changes
View
0  ....script/holland/backup/script/__init__.py → .../common/holland/common/script/__init__.py
File renamed without changes
View
4 ...up.script/holland/backup/script/plugin.py → ...ns/common/holland/common/script/plugin.py
@@ -1,5 +1,5 @@
"""
-holland.backup.script
+holland.common.script
~~~~~~~~~~~~~~~~~~~~~
Holland backups via abitrary shell scripts
@@ -9,7 +9,7 @@
import logging
from string import Template
from subprocess import Popen, STDOUT, PIPE
-from holland.backup.script.util import size_to_bytes, cmd_to_size
+from holland.common.script.util import size_to_bytes, cmd_to_size
from holland.core import BackupPlugin, BackupError
from holland.core.util import directory_size
View
0  ...ckup.script/holland/backup/script/util.py → plugins/common/holland/common/script/util.py
File renamed without changes
View
17 plugins/holland.backup.script/LICENSE
@@ -1,17 +0,0 @@
-
-Script Plugin for the Holland Backup Framework
-Copyright (C) 2008-2011 Rackspace US, Inc.
-
-This program is 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.
-
-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 General Public License for more details.
-
-You should have received a copy of the GNU 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.
View
26 plugins/holland.backup.script/README
@@ -1,26 +0,0 @@
-A very simple backup plugin for holland that allows executing arbitrary scripts
-
-This replaces a single variable called ${backupdir} with the actual
-holland backup directory.
-
-A command is considered as failed if it exits with non-zero status.
-
-Example configuration:
-
-[holland:backup]
-plugin = script
-
-[script]
-shell = /bin/sh
-cmd = innobackupex-1.5.1 --stream=tar4ibd --slave-info /tmp > ${backupdir}/xtrabackup.tar.gz
-
-More complex:
-
-[holland:backup]
-plugin = script
-
-[script]
-shell = /bin/bash
-# exit with mysqldump exit status rather than gzip's
-cmd = mysqldump --all-databases | gzip --fast > ${backupdir}/all_databases.sql.gz; exit ${PIPESTATUS[0]}
-
View
1  plugins/holland.backup.script/holland/__init__.py
@@ -1 +0,0 @@
-__import__('pkg_resources').declare_namespace(__name__)
View
1  plugins/holland.backup.script/setup.cfg
@@ -1 +0,0 @@
-[egg_info]
View
22 plugins/holland.backup.script/setup.py
@@ -1,22 +0,0 @@
-from setuptools import setup, find_packages
-import sys, os
-
-version = '1.0.7a1'
-
-setup(name='holland.backup.script',
- version=version,
- description="Perform backups with simple shell commands",
- long_description="""
- """,
- author='Andrew Garner',
- author_email='muzazzi@gmail.com',
- url='http://hollandbackup.org',
- license='GPL2',
- packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
- zip_safe=False,
- entry_points="""
- [holland.backup]
- script = holland.backup.script:ScriptPlugin
- """,
- namespace_packages=['holland', 'holland.backup']
-)
Please sign in to comment.
Something went wrong with that request. Please try again.