documentation: tidy --dry-run, --print-schedule examples

pull/504/head
Axel Burri 2022-11-16 01:37:12 +01:00
parent 125b37468a
commit 5c561d8c14
1 changed files with 6 additions and 2 deletions

View File

@ -82,7 +82,7 @@ with this package. For a detailed description, please consult the
[btrbk.conf(5)] man-page. [btrbk.conf(5)] man-page.
After a configuration change, it is highly recommended to check it by 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 # btrbk -c /path/to/myconfig -v -n run
@ -153,7 +153,7 @@ If you don't want to mount the btrfs root filesystem to
snapshot_dir /btrbk_snapshots snapshot_dir /btrbk_snapshots
subvolume /home subvolume /home
Start a dry run: Start a dry run (-n, --dry-run):
# btrbk run -n # btrbk run -n
@ -161,6 +161,10 @@ Create the first snapshot:
# btrbk run # btrbk run
Print schedule (-S, --print-schedule):
# btrbk run -n -S
If it works as expected, configure a cron job to run btrbk hourly: If it works as expected, configure a cron job to run btrbk hourly:
/etc/cron.hourly/btrbk: /etc/cron.hourly/btrbk: