restic: add dry_run option on check command

This commit is contained in:
Nicolas KAROLAK 2018-06-07 11:22:28 +02:00 committed by Jerome Charaoui
parent 3d84e15c27
commit c0426653fc

View File

@ -305,6 +305,7 @@ if [[ "$run_forget" == "yes" ]]; then
getconf path getconf path
getconf compact getconf compact
getconf group_by getconf group_by
getconf dry_run
getconf prune getconf prune
[ -n "$keep_last" ] && \ [ -n "$keep_last" ] && \
@ -346,6 +347,9 @@ if [[ "$run_forget" == "yes" ]]; then
[ -n "$group_by" ] && \ [ -n "$group_by" ] && \
cmd_options+="--group-by $group_by " cmd_options+="--group-by $group_by "
[ -n "$dry_run" ] && \
cmd_options+="--dry-run "
[ -n "$prune" ] && \ [ -n "$prune" ] && \
cmd_options+="--prune " cmd_options+="--prune "