
# SPDX-License-Identifier: GPL-3.0-or-later

# ------------------------------------------------------------------------
# Demo of a `dar-backup` configuration file
# This file was generated by dar-backup's `demo` program.
# 
{%- if opts_dict | length > 0 %}
# Options given to the `demo` program:
{% endif %}
{%- if opts_dict.ROOT_DIR -%}
# --root-dir : {{ opts_dict.ROOT_DIR }}  
{% endif %}
{%- if opts_dict.DIR_TO_BACKUP -%}
# --dir-to-backup : {{ opts_dict.DIR_TO_BACKUP }}  
{% endif -%}
{%- if opts_dict.BACKUP_DIR -%}
# --backup-dir : {{ opts_dict.BACKUP_DIR }}
{% endif %}
#
# Variables used to generate this file:
# =====================================
{% for k,v in vars_map|dictsort %}# {{ k }} : {{ v }}
{% endfor -%}
# ------------------------------------------------------------------------

[MISC]
LOGFILE_LOCATION = {{ vars_map.DAR_BACKUP_DIR -}}/dar-backup.log
# optional parameters
# LOGFILE_MAX_BYTES = 26214400  # 25 MB default, change as neeeded
# LOGFILE_BACKUP_COUNT = 5      # default, change as needed

MAX_SIZE_VERIFICATION_MB = 2
MIN_SIZE_VERIFICATION_MB = 0
NO_FILES_VERIFICATION = 1
# timeout in seconds for backup, test, restore and par2 operations
# The author has such `dar` tasks running for 10-15 hours on the yearly backups, so a value of 24 hours is used.
# If a timeout is not specified when using the CommandRunner, a default timeout of 30 secs is used.
COMMAND_TIMEOUT_SECS = 86400

[DIRECTORIES]
BACKUP_DIR = {{ vars_map.BACKUP_DIR }}
BACKUP.D_DIR = {{ vars_map.BACKUP_D_DIR }}
TEST_RESTORE_DIR = {{ vars_map.TEST_RESTORE_DIR }}
# Optional parameter
# If you want to store the catalog database away from the BACKUP_DIR,  use the MANAGER_DB_DIR variable.
#MANAGER_DB_DIR = /some/where/else/

[AGE]
# DIFF and INCR backups are kept for a configured number of days, then deleted by the `cleanuo` 
# age settings are in days
DIFF_AGE = 100
INCR_AGE = 40

[PAR2]
ERROR_CORRECTION_PERCENT = 5
ENABLED = True

[PREREQ]
#SCRIPT_1 = <pre-script 1>

[POSTREQ]
#SCRIPT_1 = <post-script 1>

