verbosity=3 # Borg Configuration BORG_BASE_DIR=/data/borg BORG_CACHE_DIR=$BORG_BASE_DIR/cache BORG_CONFIG_DIR=$BORG_BASE_DIR/config BORG_TMPDIR=$BORG_BASE_DIR/tmp BORG_SECURITY_DIR=$BORG_BASE_DIR/security # Jean-Cloud configuration: # Where are backups saved BORG_HOSTS=(\ /data/borg/repos \ ssh://root@tetede.jean-cloud.net:45985/data/borg/repos \ #ssh://borg@tetede.jean-cloud.net:4646/data/borg/repos \ ) # Local backuped dirs local_repos=($(ls -d /data/*)) #NO TRAILING SLASHES PLEASE # Hosts configuration # # Sample host configuration # host_mode[alias]=local|ssh # host_repo_dir[alias]=/path/to/repo # # Params below this line are specific to ssh hosts # host_host[alias]=borg.example.org|123.456.789 # TODO There are regexps to chek for valid IPv4 and IPv6, but not URL yet. # host_port[alias]=22 # host_user[alias]=borg-distant-user declare -A host_mode host_repo_dir host_host host_port host_user host_repo_dir # host: tetede host_mode[tetede]=ssh host_host[tetede]=tetede.jean-cloud.net host_port[tetede]=45985 host_user[tetede]=root host_repo_dir[tetede]=/data/borg/repos # host : localhost host_mode[localhost]=local host_repo_dir[localhost]=/data/borg/repos declare -A BORG_KEEP_HOURLY BORG_KEEP_DAILY BORG_KEEP_WEEKLY BORG_KEEP_MONTHLY BORG_KEEP_YEARLY # Global retention configuration (comment a line to deactivate it, do not set it to 0) #BORG_KEEP_HOURLY[all]=1 BORG_KEEP_DAILY[all]=4 BORG_KEEP_WEEKLY[all]=2 BORG_KEEP_MONTHLY[all]=2 #BORG_KEEP_YEARLY[all]=1 # Per-host retention configuration (comment a line to deactivate it, do not set it to 0) #BORG_KEEP_HOURLY[alias]=1 #BORG_KEEP_DAILY[alias]=4 #BORG_KEEP_WEEKLY[alias]=2 #BORG_KEEP_MONTHLY[alias]=2 BORG_KEEP_YEARLY[localhost]=1