Permalink
Browse files

move holland.backup.script under common plugin package

  • Loading branch information...
1 parent b5e7c0e commit 7d8b06288384fbe8d8af1464e6ed8af2734c80bd @abg committed Jan 27, 2013
@@ -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
@@ -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.
@@ -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]}
-
@@ -1 +0,0 @@
-__import__('pkg_resources').declare_namespace(__name__)
@@ -1 +0,0 @@
-[egg_info]
@@ -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']
-)

0 comments on commit 7d8b062

Please sign in to comment.