borg: repository: 'test-repo' # Choose compression or 'none' compression: 'zstd,3' # enviroment-variables env-vars: [] #'BORG_RSH': 'ssh -i ~/.ssh/id_ed25519' #'BORG_PASSPHRASE': '' # Additional arguments added [in front] of everything else args: '' backup: # Conditions which have to be met for the backup to start run-conditions: battery: # [passive] min-percent: 60 or_ac-connected: true # How old should the previous backup be so we do another one [in seconds] backup-age: 64800 tries: # How often should we try amount: 3 # How long to wait for another try sleep: 600 # Files/Folders to in/exclude in the backup # Supports wildcards like *.bak include: [] exclude: - '*.part' - '*.bak' - '*.tmp' - '*/tmp/' - '*/temp/' - '*/cache/' - '*/caches/' - '*/.cache/' - '*/.caches/' - '*/_cacache/' - '*/.Trash-*/' metadata: # File to store metadata (empty to use config-name + .data) file: '' # Scan for files marking folders to include/exclude scan: enabled: true locations: - './' - '/data/' backup: '.borg.backup' nobackup: '.borg.nobackup' # Touch file after we found it (update date-accessed) touch: true # Run file if executeable execute: true # Cache scanned files cache: # File to store cache (empty to use config-name + .cache) file: '' # time [in seconds] # (probably good to set this higher than tries.amount * tries.sleep) valid-time: 1860