Документация § https://restic.readthedocs.io/en/stable/030_preparing_a_new_repo.html https://restic.readthedocs.io/en/stable/040_backup.html https://restic.readthedocs.io/en/stable/045_working_with_repos.html https://restic.readthedocs.io/en/stable/050_restore.html Примеры команд § Если репозитории создавались с использованием sudo, то для остальных команд его тоже нужно использовать. # Set keys export AWS_ACCESS_KEY_ID=<MY_ACCESS_KEY> export AWS_SECRET_ACCESS_KEY=<MY_SECRET_ACCESS_KEY> # Init backup repository restic -r s3:storage.yandexcloud.net/macbook-backup init # Create snapshot - dry run restic -r s3:storage.yandexcloud.net/macbook-backup --verbose backup ~/Projects ~/Documents ~/Downloads ~/PycharmProjects --dry-run # List snapshots restic -r s3:storage.yandexcloud.net/macbook-backup snapshots # List files in directory of snapshot restic ls a71becf5:/Users/hazadus/Projects/ -r s3:storage.yandexcloud.net/macbook-backup # Restore specific directory in target location restic -r s3:storage.yandexcloud.net/macbook-backup restore a71becf5:/Users/hazadus/Projects/HelloWorld --target /tmp/restore-work/HelloWorld 📂 Tooling | Последнее изменение: 15.11.2024 17:11