Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Johann Bahl committed Dec 8, 2023
1 parent 6883524 commit a2cbf86
Show file tree
Hide file tree
Showing 4 changed files with 272 additions and 153 deletions.
19 changes: 9 additions & 10 deletions HACKING.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ Hacking
Development setup
=================

Backy is intended to be compatible with Python 3.4. It is expected to work
Backy is intended to be compatible with Python 3.10. It is expected to work
properly on Linux and Mac OS X, even though specific backends may not be
available on all platforms. Use `zc.buildout` to get a development setup::
available on all platforms. Use `poetry` to get a development setup::

$ hg clone https://bitbucket.org/flyingcircus/backy
$ git clone https://github.com/flyingcircusio/backy.git
$ cd backy
$ virtualenv --python=python3.4 .
$ bin/pip install zc.buildout
$ bin/buildout
$ poetry install
or
$ nix develop


Running tests
Expand All @@ -24,17 +24,16 @@ Running tests
Backy has some end-to-end tests which take a while. To run only quick unit
tests::

$ bin/py.test
$ pytest -m "not slow"

To run all tests::

$ bin/py.test -m 1
$ pytest


Releasing
=========

Install `zest.releaser` on your workstation. Then use::
Install `zest.releaser` (`nix develop`) on your workstation. Then use::

$ fullrelease

Expand Down
24 changes: 14 additions & 10 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,16 @@ Restore the full image through a Pipe::

$ backy restore -r <revision> - | rbd import - <pool>/<rootimage>

Restoring individual files
--------------------------

Take a look at `backy-extract`_ to mount a backup via fuse and extract
single files.

Setting up backy
----------------

#. Create a sufficiently large backup partition using a COW-capable filesystem
like btrfs and mount it under `/srv/backy`.
#. Create a sufficiently large backup partition and mount it under `/srv/backy`.

#. Create a configuration file at `/etc/backy.conf`. See man page for details.

Expand All @@ -63,7 +67,7 @@ Setting up backy

The scheduler runs in the foreground until it is shot by SIGTERM.

#. Set up monitoring using `backy check`.
#. Set up monitoring using `backy client -c /path/to/backy.conf check`.

#. Set up log rotation for `/var/log/backy.conf` and `/srv/backy/*/backy.log`.

Expand All @@ -77,13 +81,13 @@ Features
Self-check
----------

Backy includes a self-checking facility. Invoke `backy check` to see if there is
a recent revision present for all configured backup jobs::
Backy includes a self-checking facility. Invoke `backy client check` to see if
there is a recent revision present for all configured backup jobs::

$ backy check
OK: 9 jobs within SLA
$ backy client check
[...] CLIClient/check-exit exitcode=0 jobs=9

Both output and exit code are suited for processing with Nagios-compatible
The exit code is suited for processing with Nagios-compatible
monitoring systems.


Expand Down Expand Up @@ -188,9 +192,9 @@ GPLv3
Links
=====

* `Bitbucket repository <https://bitbucket.org/flyingcircus/backy>`_
* `Github repository <https://github.com/flyingcircusio/backy>`_
* `PyPI page <https://pypi.python.org/pypi/backy>`_
* `Online docs <http://pythonhosted.org/backy/>`_
* `Build server <https://builds.flyingcircus.io/job/backy/>`_
* `backy-extract <https://github.com/flyingcircusio/backy-extract>`_

.. vim: set ft=rst spell spelllang=en sw=3:
Loading

0 comments on commit a2cbf86

Please sign in to comment.