Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Rclone Sync with S3 Storage #31

Open
compgeniuses opened this issue Jul 11, 2024 · 0 comments
Open

Implement Rclone Sync with S3 Storage #31

compgeniuses opened this issue Jul 11, 2024 · 0 comments

Comments

@compgeniuses
Copy link
Owner

Ref: paperless-ngx/paperless-ngx#762

A proposal is made to Have Rclone within the pod that syncs the consume fodlers to an S3 Storage Location.

This could potentially enable other access methods for the document, equally potentiall Nextcloud.

version: "3.9"
services:
  webserver:
    image: ghcr.io/paperless-ngx/paperless-ngx:latest
    volumes:
      - type: volume
        source: data
        target: /usr/src/paperless/data
        volume:
          nocopy: true
      - type: volume
        source: media
        target: /usr/src/paperless/media
        volume:
          nocopy: true
      - type: volume
        source: consume
        target: /usr/src/paperless/consume
        volume:
          nocopy: true   
      - export:/usr/src/paperless/export
...

volumes:
  media:    
    driver: rclone
    driver_opts:
      remote: 'homelab:homelab/paperless/media'
      allow_other: 'true'
      vfs_cache_mode: full
      poll_interval: 0
  consume:   
    driver: rclone
    driver_opts:
      remote: 'homelab:homelab/paperless/consume'
      allow_other: 'true'
      vfs_cache_mode: full
      poll_interval: 0 
...
You need to have rclone installed and a file for mapping your object storage like
[datas]
type = s3
provider = Minio (or Azure, S3, GCP)
env_auth = false
access_key_id = THE_ACCESS_KEY
secret_access_key = THE_SECRET_KEY
endpoint = THE_ENDPOINT
acl = bucket-owner-full-control
region = THE_REGION

See the documentation of rclone for more information
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant