Permalink
Browse files

backup additional storage (blob)

  • Loading branch information...
2 parents 5225097 + 0db82ef commit aaa60140bdda9823186561f98fd671a512514b21 @mamico mamico committed Sep 12, 2012
@@ -1,9 +1,24 @@
-2.5 (unreleased)
+2.7 (unreleased)
================
- Nothing changed yet.
+2.6 (2012-08-29)
+================
+
+- Added pre_command and post_command options. See the documentation.
+ [maurits]
+
+
+2.5 (2012-08-08)
+================
+
+- Moved code to github:
+ https://github.com/collective/collective.recipe.backup
+ [maurits]
+
+
2.4 (2011-12-20)
================
View
@@ -1,7 +1,6 @@
-include *.txt
-
-recursive-include docs *
recursive-include src *
-global-exclude *pyc
-global-exclude *pyo
+include *
+
+global-exclude *.pyc
+global-exclude *.pyo
@@ -40,10 +40,10 @@ cake is important!
Development
===========
-- Code repository: http://svn.plone.org/svn/collective/buildout/collective.recipe.backup
+- Code repository: https://github.com/collective/collective.recipe.backup
-- Small fixes are fine on trunk, for larger change or if you are
- unsure, please create a branch.
+- Small fixes are fine on master, for larger changes or if you are
+ unsure, please create a branch or a pull request.
- The code comes with a ``buildout.cfg``. Please bootstrap the
buildout and run the created ``bin/test`` to see if the tests still
@@ -325,6 +325,22 @@ use_rsync
false, we fall back to a simple copy (``shutil.copytree`` from
python in fact).
+pre_command
+ Command to execute before starting the backup. One use case would
+ be to mount a remote file system using NFS or sshfs and put the
+ backup there. Any output will be printed. If you do not like
+ that, you can always redirect output somewhere else (``mycommand >
+ /dev/null`` on Unix). Refer to your local Unix guru for more
+ information. If the command fails, the backup script quits with
+ an error. You can specify multiple commands.
+
+post_command
+ Command to execute after the backup has finished. One use case
+ would be to unmount the remote file system that you mounted
+ earlier using the ``pre_command``. See that pre_command above for
+ more info.
+
+
An example buildout snippet using most options, except the blob
options would look like this::
@@ -338,6 +354,10 @@ options would look like this::
snapshotlocation = snap/my
gzip = false
enable_snapshotrestore = true
+ pre_command = echo 'Can I have a backup?'
+ post_command =
+ echo 'Thanks a lot for the backup.'
+ echo 'We are done.'
Paths in directories or files can use relative (``../``) paths, and
``~`` (home dir) and ``$BACKUP``-style environment variables are
View
@@ -9,10 +9,10 @@
def read(*rnames):
return open(os.path.join(*rnames)).read()
-version = '2.5dev'
+version = '2.7.dev0'
long_description = (
- read('README.txt')
+ read('README.rst')
+ '\n' +
'Contributors\n'
'************\n'
@@ -22,7 +22,7 @@ def read(*rnames):
'Change history\n'
'**************\n'
+ '\n' +
- read('src', 'collective', 'recipe', 'backup', 'CHANGES.txt')
+ read('CHANGES.rst')
)
entry_point = 'collective.recipe.backup:Recipe'
entry_points = {
@@ -48,7 +48,7 @@ def read(*rnames):
keywords='buildout backup repozo zope',
author='Reinout van Rees, Maurits van Rees',
author_email='reinout@vanrees.org',
- url='http://svn.plone.org/svn/collective/buildout/collective.recipe.backup',
+ url='https://github.com/collective/collective.recipe.backup',
license='GPL',
package_dir={'': 'src'},
packages=find_packages('src'),
Oops, something went wrong.

0 comments on commit aaa6014

Please sign in to comment.