Skip to content

Commit

Permalink
documentation: tidy --dry-run, --print-schedule examples
Browse files Browse the repository at this point in the history
  • Loading branch information
digint committed Nov 16, 2022
1 parent 125b374 commit 5c561d8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Expand Up @@ -82,7 +82,7 @@ with this package. For a detailed description, please consult the
[btrbk.conf(5)] man-page.

After a configuration change, it is highly recommended to check it by
running btrbk with the `-n,--dryrun` option:
running btrbk with the `-n,--dry-run` option:

# btrbk -c /path/to/myconfig -v -n run

Expand Down Expand Up @@ -153,14 +153,18 @@ If you don't want to mount the btrfs root filesystem to
snapshot_dir /btrbk_snapshots
subvolume /home

Start a dry run:
Start a dry run (-n, --dry-run):

# btrbk run -n

Create the first snapshot:

# btrbk run

Print schedule (-S, --print-schedule):

# btrbk run -n -S

If it works as expected, configure a cron job to run btrbk hourly:

/etc/cron.hourly/btrbk:
Expand Down

0 comments on commit 5c561d8

Please sign in to comment.