Archive Legacy Setup And Add Ansible Control Plane
This commit is contained in:
@@ -0,0 +1,98 @@
|
||||
version = "1"
|
||||
|
||||
[global]
|
||||
scheduler = "systemd"
|
||||
|
||||
# ── Общие настройки ────────────────────────────────────────────────────────────
|
||||
[default]
|
||||
password-file = "/etc/restic/password"
|
||||
initialize = true
|
||||
|
||||
[default.forget]
|
||||
keep-daily = 7
|
||||
keep-weekly = 4
|
||||
keep-monthly = 6
|
||||
schedule-permission = "system"
|
||||
schedule-after-backup = true
|
||||
prune = true
|
||||
|
||||
[default.check]
|
||||
schedule = "Sun 04:00"
|
||||
schedule-permission = "system"
|
||||
|
||||
# ── Данные и конфиги сервисов ─────────────────────────────────────────────────
|
||||
[services]
|
||||
inherit = "default"
|
||||
repository = "/mnt/backup/restic/services"
|
||||
|
||||
[services.backup]
|
||||
source = ["/opt/data", "/opt/configs"]
|
||||
tag = ["cloud-pc", "services"]
|
||||
exclude-caches = true
|
||||
one-file-system = true
|
||||
schedule = "02:00"
|
||||
schedule-permission = "system"
|
||||
schedule-log = "/var/log/resticprofile/services.log"
|
||||
|
||||
[services.forget]
|
||||
schedule = "02:30"
|
||||
|
||||
# ── Samba-шара ────────────────────────────────────────────────────────────────
|
||||
[samba]
|
||||
inherit = "default"
|
||||
repository = "/mnt/backup/restic/samba"
|
||||
|
||||
[samba.backup]
|
||||
source = ["/opt/samba"]
|
||||
tag = ["cloud-pc", "samba"]
|
||||
exclude-caches = true
|
||||
one-file-system = true
|
||||
schedule = "03:00"
|
||||
schedule-permission = "system"
|
||||
schedule-log = "/var/log/resticprofile/samba.log"
|
||||
|
||||
[samba.forget]
|
||||
schedule = "03:30"
|
||||
|
||||
# ── Yandex Disk: ночная удалённая копия ───────────────────────────────────────
|
||||
[yadisk-default]
|
||||
inherit = "default"
|
||||
|
||||
[yadisk-default.check]
|
||||
schedule = "Sun 06:00"
|
||||
schedule-permission = "system"
|
||||
schedule-after-network-online = true
|
||||
|
||||
[yadisk-services]
|
||||
inherit = "yadisk-default"
|
||||
repository = "rclone:yadisk:System/Backups/cloud-pc/restic/services"
|
||||
|
||||
[yadisk-services.backup]
|
||||
source = ["/opt/data", "/opt/configs"]
|
||||
tag = ["cloud-pc", "services", "yadisk"]
|
||||
exclude-caches = true
|
||||
one-file-system = true
|
||||
schedule = "04:00"
|
||||
schedule-permission = "system"
|
||||
schedule-after-network-online = true
|
||||
schedule-log = "/var/log/resticprofile/yadisk-services.log"
|
||||
|
||||
[yadisk-services.forget]
|
||||
schedule = "04:30"
|
||||
|
||||
[yadisk-samba]
|
||||
inherit = "yadisk-default"
|
||||
repository = "rclone:yadisk:System/Backups/cloud-pc/restic/samba"
|
||||
|
||||
[yadisk-samba.backup]
|
||||
source = ["/opt/samba"]
|
||||
tag = ["cloud-pc", "samba", "yadisk"]
|
||||
exclude-caches = true
|
||||
one-file-system = true
|
||||
schedule = "05:00"
|
||||
schedule-permission = "system"
|
||||
schedule-after-network-online = true
|
||||
schedule-log = "/var/log/resticprofile/yadisk-samba.log"
|
||||
|
||||
[yadisk-samba.forget]
|
||||
schedule = "05:30"
|
||||
Reference in New Issue
Block a user