# ======================================================================
#
# IML BACKUP STORAGE HELPER :: CONFIG
#
# ======================================================================

    # max count of simultanous connections; 0 is unlimited
    typeset -i iMaxConnections=10
    typeset -i iConnections

    sSelfdir="$( dirname $0 )"

    # directory with backup data
    #   sublevel 1 is a name of backup tool
    #   sublevel 2 is a fqdn of a backed up server
    #   i.e. /netshare/restic-backup/server.example.com
    sBackupBasedir="/netshare"

    # where to store current connections
    # sConncectionDir="${sBackupBasedir}/_active"
    sConncectionDir="${sSelfdir}/_active_connections"

    # where to store last backup status
    sStatusDir="${sSelfdir}/_last_backup"

    # log
    sLogdir="${sSelfdir}/log"
    sLogfile="$sLogdir/connections.log"

    # for prune on restic rest server
    prune_basedir=/netshare/restic-backup
    prune_params="--group-by paths,tags --prune --keep-within 180d --max-unused unlimited --max-repack-size 100M --cleanup-cache --verbose=0"
    prune_skipdays="7"
    prune_cachedir=${prune_basedir}/.cache_for_pruning

# ----------------------------------------------------------------------