Hi! I want to thank you guys for any support in this case!
Before i start some information about my environment:
I want to backup my PaperlessNGX Files via rclone to GDrive. I was using rclone to GDrive a while ago for HomeAssistant Backups which worked finde. I configured the backup with this guide: Backup Automation With Paperless-ngx and Rclone
Script using:
#!/bin/bash
# path to your docker-compose.yml
**cd** /home/docker/paperless-ngx
# execute the paperless document exporter
# save the backup in the export folder
docker compose exec **-T** webserver document_exporter ../export
# rclone command to encrypt and sync with the cloud
/snap/bin/rclone sync /home/docker/paperless-ngx/export GDrive:Paperless -vv
Everything looks good, remote ist configured an named "GDrive" which you will also see in the script below. I tried GDrive: as Destination an GDrive:Paperless, both gives me the exact same output.
I got Docker running on an Proxmox-VM and Paperless running in Docker.
What is the problem you are having with rclone?
**docker@docker**:**~/paperless-ngx**$ sudo ./backup.sh
100%|██████████| 46/46 [00:00<00:00, 626.40it/s]
2025/01/03 09:58:31 NOTICE: Config file "/root/snap/rclone/522/.config/rclone/rclone.conf" not found - using defaults
2025/01/03 09:58:31 CRITICAL: Failed to create file system for "GDrive:Paperless": didn't find section in config file
Also tried to give the --config variable and referenced to path from "rclone config file" which gives me the following error:
**docker@docker**:**~/paperless-ngx**$ rclone config file
Configuration file is stored at:
/home/docker/snap/rclone/522/.config/rclone/rclone.conf
**docker@docker**:**~/paperless-ngx**$ sudo ./backup.sh
100%|██████████| 46/46 [00:00<00:00, 633.27it/s]
2025/01/03 10:04:40 CRITICAL: Failed to load config file "/home/docker/snap/rclone/522/.config/rclone/rclone.conf": open /home/docker/snap/rclone/522/.config/rclone/rclone.conf: permission denied
Run the command 'rclone version' and share the full output of the command.
rclone v1.68.2
- os/version: ubuntu 22.04 (64 bit)
- os/kernel: 5.15.0-124-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.23.3
- go/linking: static
- go/tags: snap
Which cloud storage system are you using? (eg Google Drive)
Google Drive
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
**docker@docker**:**~/paperless-ngx**$ sudo ./backup.sh
100%|██████████| 46/46 [00:00<00:00, 626.40it/s]
2025/01/03 09:58:31 NOTICE: Config file "/root/snap/rclone/522/.config/rclone/rclone.conf" not found - using defaults
2025/01/03 09:58:31 CRITICAL: Failed to create file system for "GDrive:Paperless": didn't find section in config file
Also tried to give the --config variable and referenced to path from "rclone config file" which gives me the following error:
**docker@docker**:**~/paperless-ngx**$ rclone config file
Configuration file is stored at:
/home/docker/snap/rclone/522/.config/rclone/rclone.conf
**docker@docker**:**~/paperless-ngx**$ sudo ./backup.sh
100%|██████████| 46/46 [00:00<00:00, 633.27it/s]
2025/01/03 10:04:40 CRITICAL: Failed to load config file "/home/docker/snap/rclone/522/.config/rclone/rclone.conf": open /home/docker/snap/rclone/522/.config/rclone/rclone.conf: permission denied
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
**docker@docker**:**~**$ rclone config redacted
[GDrive]
type = drive
client_id = XXX
client_secret = XXX
scope = drive.file
token = XXX
team_drive =
### Double check the config for sensitive info before posting publicly
A log from the command that you were trying to run with the -vv
flag
100%|██████████| 46/46 [00:00<00:00, 643.57it/s]
2025/01/03 10:42:57 DEBUG : rclone: Version "v1.68.2" starting with parameters ["/snap/rclone/522/bin/rclone" "sync" "/home/docker/paperless-ngx/export" "GDrive:Paperless" "-vv"]
2025/01/03 10:42:57 DEBUG : Creating backend with remote "/home/docker/paperless-ngx/export"
2025/01/03 10:42:57 NOTICE: Config file "/root/snap/rclone/522/.config/rclone/rclone.conf" not found - using defaults
2025/01/03 10:42:57 DEBUG : Creating backend with remote "GDrive:Paperless"
2025/01/03 10:42:57 CRITICAL: Failed to create file system for "GDrive:Paperless": didn't find section in config file
Thank you so much an best regards
Justin