Add Healthchecks service details to architecture and backup documentation, including its role as a Dead man's switch for backups. Update backup scripts to utilize systemd timers instead of cron for improved scheduling. Enhance network topology documentation to reflect Healthchecks integration in the VPS Miran setup. This update clarifies backup processes and enhances overall system reliability.
17 lines
475 B
Desktop File
17 lines
475 B
Desktop File
# Выгрузка /mnt/backup (без photos) в Yandex S3 через restic
|
|
|
|
[Unit]
|
|
Description=Backup to Yandex S3 (restic, main)
|
|
After=network-online.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
Environment=HOME=/root
|
|
Environment=PATH=/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
|
ExecStart=/bin/sh -c '/root/scripts/backup-restic-yandex.sh && echo $(date -Iseconds) > /var/run/backup-restic-yandex.ok'
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|