Files
Adrien Poupa 6a42ee8f4f feat: Add Paperless-NGX (#183)
* feat(paperless): Add Paperless Ngx service

* feat(paperless): Add admin user and password to environment configuration

* fix(paperless): Update PAPERLESS_URL to remove redundant path
2026-03-29 12:33:31 -04:00

49 lines
1.6 KiB
Bash

# Restic backup configuration for Paperless
# Configure the backup repository destination and schedule
# Restic repository URL (required)
# Supports all Restic backends. Uncomment the appropriate example for your setup:
#
# Rclone remote (requires prior: docker compose run --rm -it paperless-backup rclone config):
# RESTIC_REPOSITORY=rclone:myremote:/nas-backups/paperless
#
# S3 (AWS, Wasabi, MinIO, DigitalOcean Spaces, etc.):
# RESTIC_REPOSITORY=s3:s3.amazonaws.com/my-bucket/paperless
# RESTIC_REPOSITORY=s3:https://s3-compatible.example.com/bucket/paperless
#
# Backblaze B2:
# RESTIC_REPOSITORY=b2:my-bucket:path/to/paperless
#
# SFTP:
# RESTIC_REPOSITORY=sftp://user@host/path/to/paperless
#
# Local path:
# RESTIC_REPOSITORY=/mnt/backup/paperless
#
# Azure Blob Storage:
# RESTIC_REPOSITORY=azure://container/paperless
#
# Google Cloud Storage:
# RESTIC_REPOSITORY=gs://bucket-name/paperless
RESTIC_REPOSITORY=
# Restic repository password (required)
# Used to encrypt and decrypt the restic backup repository
# Generate a strong password with: openssl rand -base64 32
RESTIC_PASSWORD=
# Backup schedule (cron format with optional seconds)
# Examples:
# 0 30 3 * * * = 3:30 AM daily
# 0 0 4 * * 0 = 4:00 AM every Sunday
# 0 0 */12 * * * = Every 12 hours
BACKUP_CRON=0 30 3 * * *
# Timezone for cron scheduling
# Used to interpret the CRON schedule
TIMEZONE=America/New_York
# Retention policy (backup rotation)
# Keep the last 7 daily snapshots, 4 weekly, and 3 monthly for long-term storage
RESTIC_FORGET_ARGS=--keep-last 7 --keep-daily 7 --keep-weekly 4 --keep-monthly 3