Files
homelab-docs/docs/backup/restic-yandex-env.example

13 lines
833 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Пример конфига для restic + Yandex Object Storage.
# Скопировать на хост Proxmox: cp restic-yandex-env.example /root/.restic-yandex.env
# Подставить свои Access Key ID и Secret Key, chmod 600 /root/.restic-yandex.env
# Не коммитить файл с реальными ключами.
# Сервисному аккаунту в Yandex нужна роль storage.editor (не только uploader) — restic требует List объектов в бакете.
RESTIC_REPOSITORY=s3:storage.yandexcloud.net/backup-local
AWS_ACCESS_KEY_ID=ваш_идентификатор_ключа
AWS_SECRET_ACCESS_KEY=ваш_секретный_ключ
RESTIC_PASSWORD_FILE=/root/.restic-password
# Регион Yandex (по умолчанию ru-central1)
AWS_DEFAULT_REGION=ru-central1