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

# ------------------------------------------------------------------------
# Demo of a `dar-backup` definition 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 -%}
# ------------------------------------------------------------------------

# Switch to ordered selection mode, which means that the following options
# will be considered top to bottom
-am

# Backup Root dir
{%- if vars_map.ROOT_DIR %}
-R {{ vars_map.ROOT_DIR }}
{% endif -%}

{% if vars_map.DIR_TO_BACKUP %}
# Directories to backup below the Root dir
-g {{ vars_map.DIR_TO_BACKUP }}

# This is an example of exclusion of a `.private` directory inside the
# directory that is backed up
-P {{ vars_map.DIR_TO_BACKUP }}/.private
{%- else %}
# Examples of directories to exclude below the Root dir
-P mnt
-P .cache
{% endif %}

# compression level
-z5

# no overwrite, if you rerun a backup, 'dar' halts and asks what to do
# as `dar-backup` gives the `-Q` option to `dar`, the net effect of `-n` and `-Q` is
# that `dar` will quit and not overwrite the existing backup 
-n
 
# size of each slice in the archive (10G is 10 Gigabytes)
--slice 10G

# bypass directores marked as cache directories
# http://dar.linux.free.fr/doc/Features.html
--cache-directory-tagging
