> ## Content Index
> Fetch the complete content index at: https://arabroot.cloud-event.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# [تجريبي] قاعدة 3-2-1 عملياً: نسخ احتياطي مشفّر مع restic
- URL: https://arabroot.cloud-event.com/articles/نسخ-احتياطي-مشفر-مع-restic/
- Published: 2026-09-21T10:00:00.000Z
- Updated: 2026-09-25T16:13:45.000Z
- Description: ثلاث نسخ، على وسيطين، واحدة خارج الموقع: تطبيق القاعدة بأداة restic مع جدولة واختبار استعادة.
- Author: ArabRoot Dev Admin
- Tags: الأدلة التقنية, النسخ الاحتياطي والتعافي, لينكس والخوادم, الاستضافة الذاتية, restic

⚠️

**محتوى تجريبي** لمعاينة القالب.

## القاعدة

ثلاث نسخ من البيانات، على نوعين مختلفين من الوسائط، ونسخة واحدة على الأقل خارج المبنى.

## تهيئة المستودع

```bash
export RESTIC_REPOSITORY=s3:https://s3.example.com/backups
export RESTIC_PASSWORD_FILE=/root/.restic-pass
restic init
restic backup /srv/data --exclude-caches
```

🛑

احفظ كلمة مرور المستودع خارج الخادم؛ فقدانها يعني فقدان النسخ.

## اختبار الاستعادة

```bash
restic snapshots
restic restore latest --target /tmp/restore-test
```