
backuppurge
===========

Selectively purge daily full backups, but keeping some:

* Keep all daily backups for the last X days
* Keep one daily backup per month for the last Y months
* Keep one yearly backup per year for the last Z years

Backup file names must have YYYY-MM-DD in their filename somewhere
(in that format) and must have the same prefix/postfix, e.g.::

   homedir_2013-03-31.tgz
   homedir_2013-03-30.tgz
   ...


Documentation
-------------

Usage information can be found in the `manual page`_.

.. _`manual page`: backuppurge.1.html


Dependencies
------------

* Python_ 3.2 OR Python >= 2.6 with argparse
* *Optional:* Nose_ for running unit tests
* *Optional:* Docutils_ for updating the documentation

.. _Python: http://www.python.org/
.. _Nose: https://pypi.python.org/pypi/nose/
.. _Docutils: http://docutils.sourceforge.net/

Running Tests
-------------

To run the test suite::

    nosetests


Updating the documentation
--------------------------

To convert the README file to a website and to update the manual page::

    python update_docs.py


Download
--------

* Source tarball: `backuppurge-{version}.tar.gz`_
* Development version: http://github.com/thp/backuppurge/

.. _`backuppurge-{version}.tar.gz`: backuppurge-{version}.tar.gz


Website
-------

http://thp.io/2013/backuppurge/


License
-------

Simplified BSD License


------------

Thomas Perl | `contact info`_ | `thp.io`_ | `2013`_

.. _`contact info`: http://thp.io/about
.. _`thp.io`: http://thp.io/
.. _`2013`: http://thp.io/2013/

