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
481 B
Desktop File
17 lines
481 B
Desktop File
# Выгрузка /mnt/backup/photos в Yandex S3 через restic
|
|
|
|
[Unit]
|
|
Description=Backup photos to Yandex S3 (restic)
|
|
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-photos.sh && echo $(date -Iseconds) > /var/run/backup-restic-yandex-photos.ok'
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|