-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.yml
More file actions
107 lines (93 loc) · 3.22 KB
/
main.yml
File metadata and controls
107 lines (93 loc) · 3.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# SPDX-License-Identifier: MIT
---
# ==========================================
# General Role Configuration
# ==========================================
kopia_state: present
kopia_service_name: "kopia"
kopia_image_tag: "0.22.3"
kopia_timezone: "Europe/Paris"
kopia_backup_agent_name: "kopia-backup-agent"
# ==========================================
# Repository Credentials & Identity
# ==========================================
# kopia_password: <VAULTED>
# kopia_repository_username: <VAULTED>
kopia_client_hostname: "kopia-backup-host"
kopia_repository_description: "Backup Repository managed by Ansible"
# ==========================================
# S3 Backend Configuration
# ==========================================
kopia_s3_bucket_name: "my-backups"
kopia_s3_endpoint_url: "my-s3-endpoint.com"
# kopia_s3_access_key_id: <VAULTED>
# kopia_s3_access_key_secret: <VAULTED>
# ==========================================
# Host Paths & Directories
# ==========================================
# Root directory for all Kopia files on the host
kopia_root_dir: "/opt/kopia"
# Sub-directories (Relative to root)
kopia_local_dump_dir: "{{ kopia_root_dir }}/dumps_sql"
kopia_scripts_dir: "{{ kopia_root_dir }}/scripts"
# Config file path in the container
kopia_config_path: "/app/config/repository.config"
# ==========================================
# Backup Targets & Discovery
# ==========================================
# Folders to include in the snapshot
kopia_folders_to_save:
- "/opt/app"
# Databases Discovery
# Containers with this suffix will be automatically dumped
kopia_container_suffix: "-db"
kopia_cleanup_sqldumps_after_backup: true
# ==========================================
# Retention & Compression Policies
# ==========================================
# Retention - How many snapshots to keep
kopia_policy_keep_daily: 7
kopia_policy_keep_weekly: 4
kopia_policy_keep_monthly: 6
# Compression Algorithm (e.g., zstd, s2-default, none)
kopia_policy_compression: "zstd"
# ==========================================
# Scheduling & Automation
# ==========================================
# Systemd timer syntax: DayOfWeek Year-Month-Day Hour:Minute:Second
kopia_backup_execution_timer: "*-*-* 03:00:00"
# ==========================================
# Notifications (SMTP)
# ==========================================
kopia_email_report_enabled: false
kopia_email_report_to: "admin@example.com"
kopia_email_from: "kopia@example.com"
kopia_smtp_host: "smtp.example.com"
kopia_smtp_port: 587
# kopia_smtp_username: <VAULTED>
# kopia_smtp_password: <VAULTED>
# ==========================================
# Ingress & UI (Traefik)
# ==========================================
kopia_traefik_enabled: false
kopia_traefik_network: "proxy"
kopia_traefik_domain: "kopia.example.com"
kopia_web_port_expose: 51515
kopia_traefik_entrypoints: "websecure"
kopia_traefik_certresolver: ""
kopia_traefik_middlewares: ""
# ==========================================
# Exclusions (.kopiaignore)
# ==========================================
# Default exclusions
kopia_ignore_default:
- ".DS_Store"
- "Thumbs.db"
- "lost+found/"
- "**/cache/"
- "**/logs/"
- "**/tmp/"
- "*.log"
- "**/node_modules/"
# Custom exclusions for your specific project
kopia_ignore_custom: []