← Back to all services
Backup

Restic Backup Tool Configuration

restic systemctl: N/A (command-line tool)

Fast, secure backup program. Supports many backends (local, S3, SFTP, etc.).

🔌 Default Port

Varies
Varies
Depends on backend (SSH, S3, etc.)

📦 Installation Command

apt install restic

⚙️ Configuration Files

  • N/A (env vars and CLI)

📂 Default Directories

  • config: N/A (uses env vars)
  • data: Repository location (local or remote)
  • logs: stdout/stderr
  • cache: ~/.cache/restic

🔐 Default Credentials

Username:N/A
Password:Repository password (set at init)
💡 Set RESTIC_PASSWORD env var. Backend credentials via env vars (AWS_ACCESS_KEY_ID, etc.)

⚠️ Conflicts

N/A Port: N/A

✅ Works With

AWS S3Backblaze B2Google CloudAzureSFTPrclone

🛡️ Security Notes

Always use encryption (automatic), test restores, use forget/prune policies, store password securely

❓ Frequently Asked Questions

What port does Restic use?
Restic uses backend-specific ports - SSH (22), S3 (443), REST server (8000).
Restic vs BorgBackup?
Restic supports more backends (S3, GCS, Azure). Borg has better deduplication and compression.
How to initialize Restic repo?
Run: restic init --repo /path/to/repo