mirror of
https://github.com/netinvent/npbackup.git
synced 2025-02-23 22:15:43 +08:00
85 lines
4.2 KiB
Text
85 lines
4.2 KiB
Text
# NPBackup config file for npbackup v2.2+
|
|
# (C) 2022-2023 NetInvent
|
|
|
|
backup:
|
|
compression: auto
|
|
exclude_caches: true
|
|
exclude_files:
|
|
- excludes/generic_excluded_extensions
|
|
- excludes/generic_excludes
|
|
- excludes/windows_excludes
|
|
exclude_case_ignore: false # Exclusions will always have case ignored on Windows systems regarless of this setting
|
|
one_file_system: true
|
|
## Paths can contain multiple values, one per line, without quotation marks
|
|
paths: c:\liste
|
|
use_fs_snapshot: false # Use VSS snapshot on Windows (needs administrator rights), will fallback to non VSS on failure
|
|
pre_exec_command: ''
|
|
pre_exec_timeout: 3600
|
|
pre_exec_failure_is_fatal: false
|
|
post_exec_command: ''
|
|
post_exec_timeout: 3600
|
|
post_exec_failure_is_fatal: false
|
|
tags: ''
|
|
additional_parameters: ''
|
|
priority: high
|
|
|
|
ignore_cloud_files: false
|
|
exclude_patterns: ''
|
|
source_type: files_from_verbatim
|
|
repo:
|
|
repository: __NPBACKUP__sDOwE0QLAcM7/Tqh5Xu1GBvk+f90S58fKHHrWSdC79YxNjg1MjkwMDEyLjY2Mzc2NA8PDw8PDw8PDw8PDw8PDwUf5vEGXQzkoV0Q14OQtz9Tjz2ViQUItqtjott1zg7AWxUAPJi6jHdo2fn4f+Q8S9jENBZ2rM8bBtgAUMJylPqYpD2lS2tqLTs48ONKNd/DLq3nSIaAZvRKMAqpXSeeghRUFQC+QeIgEXpTle6GNs/RwdU=__NPBACKUP__
|
|
password: __NPBACKUP__IXvTGdPjhjckQ8UT99vFJaUZS2+dXZOpRjgkB11a3GgxNjg1MjkwMDEyLjY2Mzc2NA8PDw8PDw8PDw8PDw8PD40S3Im+KAIfOVueVCT1ENoOJov2Bn6xIPLs1B4uIBI9YzYfYttJ9DRynvk=__NPBACKUP__
|
|
# Backup age, in minutes, which is the minimum time between two backups
|
|
minimum_backup_age: 1440
|
|
upload_speed: 0 # in KiB, use 0 for unlimited upload speed
|
|
download_speed: 0 # in KiB, use 0 for unlimited download speed
|
|
backend_connections: 0 # Fine tune simultaneous connections to backend, use 0 for standard configuration
|
|
|
|
password_command: ''
|
|
identity:
|
|
# ${HOSTNAME} is a variable containing the hostname as exposed by platform.node()
|
|
# ${RANDOM}[n] is a variable containing 'n' random alphanumeric char
|
|
machine_id: ${HOSTNAME}-niN9
|
|
machine_group: NETPERFECT
|
|
|
|
prometheus:
|
|
## Supervision
|
|
metrics: true
|
|
# Available variables: ${HOSTNAME}, ${RANDOM}[n], ${MACHINE_ID}, ${MACHINE_GROUP}, ${BACKUP_JOB}
|
|
backup_job: ${MACHINE_ID}
|
|
# Prometheus metrics destination can be a http / https server with optional basic authentication (pushgateway), or a file path for node textfile collector to pickup
|
|
# example: https://push.monitoring.example.tld/metrics/job/${BACKUP_JOB} where ${BACKUP_JOB} is defined in prometheus_backup_job
|
|
# example: /var/lib/prometheus/collector/mytextfile
|
|
destination: https://push.supervision.netperfect.eu/metrics/job/npbackup
|
|
# prometheus instance, becomes exported_instance when using a push gateway
|
|
instance: ${MACHINE_ID}
|
|
|
|
# prometheus metrics upload password
|
|
http_username: __NPBACKUP__Pci9BBXLQMnqjour0sBafVOwaQ7GoHKsbinxvnr3GqAxNjg1MjkwMDEyLjY2Mzc2NA8PDw8PDw8PDw8PDw8PD+zj6vphDPxJz7IljOeItr1FpvVhjAU3__NPBACKUP__
|
|
http_password: __NPBACKUP__rfBD6XhG2F/OKR1bAycy3o/4WAPUaDNH7J2FiGCnAC0xNjg1MjkwMDEyLjY2NDc2NQ8PDw8PDw8PDw8PDw8PD2fM16ngjWuh1OoQbCRWXY9HLp8pvHiPlQflay+gJckTvY07__NPBACKUP__
|
|
|
|
# Arbitrary group to filter later backups on
|
|
group: ${MACHINE_GROUP}
|
|
|
|
# Additional prometheus labels
|
|
additional_labels: npf_tenant=beauvois
|
|
|
|
no_cert_verify: true
|
|
env:
|
|
variables:
|
|
- x=y
|
|
- y=z
|
|
- z=a
|
|
encrypted_variables: __NPBACKUP__aH6C7eMkEvg+VJEencPJVRjUxGAfq08ukLdYPZgGlVcxNjg1MjkwMDEyLjY2NDc2NQ8PDw8PDw8PDw8PDw8PD69quPfLhMKGiOoHYY0bj6zf1XlfKA/uAkO1nNmPaLLt/LsEju4ctM7l8cKZQ77sYz9JzZOO4aY=__NPBACKUP__
|
|
options:
|
|
auto_upgrade: true
|
|
auto_upgrade_server_url: https://upgrades.stash.netperfect.eu
|
|
auto_upgrade_server_username: __NPBACKUP__p+160CrTZbe5OOHVO+u7Jq2YR/BRD48seoT0CvaeDdYxNjg1MjkwMDEyLjY2NDc2NQ8PDw8PDw8PDw8PDw8PD2DV71RDNDTiAGwm0Fg4kexIpWEPHXETiLij2Z388nc6ng==__NPBACKUP__
|
|
auto_upgrade_server_password: __NPBACKUP__wE1Y0hEDL66grVrnRFwgbu8Rz1KzC9uTqEp0FubLOOQxNjg1MjkwMDEyLjY2NDc2NQ8PDw8PDw8PDw8PDw8PDx0mzO6ov/JHmjE7cHwpay0b/BZFRVL8+2/SnY6n93PtQhGG__NPBACKUP__
|
|
# every 10 NPBackup runs, we'll try an autoupgrade. Never set this lower than 2 since failed upgrades will prevent backups from succeeding
|
|
auto_upgrade_interval: 10
|
|
# Available variables: ${HOSTNAME}, ${RANDOM}[n], ${MACHINE_ID}, ${MACHINE_GROUP}, ${BACKUP_JOB}
|
|
auto_upgrade_host_identity: ${MACHINE_ID}
|
|
auto_upgrade_group: ${MACHINE_GROUP}
|
|
|
|
backup_admin_password:
|