Skip to content

Commit

Permalink
Fix README.rst code blocks
Browse files Browse the repository at this point in the history
I'm not used to rst formatting so i copy pasted something and it backfired.
  • Loading branch information
ArnaudLevaufre committed Jun 2, 2018
1 parent c7c7e0d commit e26c1b8
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ Every subvolume that should be snapshoted must be given as argument to the
script. For example if you want to snapshot every home directory created as
subvolumes and your `/etc` and `/srv` directory you would do

.. doctest:: bash
btrfs-simple-snapshots /home/* /etc /srv
..
.. code-block::
btrfs-simple-snapshots /home/* /etc /srv
Once done, you will find a new subvolume named `.snapshots` inside the
snapshoted subvolume with a name formated as `%Y-%m-%d-%H%M%S`
Expand All @@ -33,6 +34,7 @@ good thing to run it automatically with a cron job. Depending on you need you
may run it once per day (at 2 a.m.) to snapshot every home folder (created as
subvolumes) with this kind of job definition.

.. doctest:: cron
0 2 * * * python -m btrfs_simple_snapshots /home/*
..
.. code-block::
0 2 * * * python -m btrfs_simple_snapshots /home/*

0 comments on commit e26c1b8

Please sign in to comment.