What is the problem you are having with rclone?
Invoking exclude if present via API does not work. Same command via rc works. I tried with filters, excluding folders, etc.. and the result is the same. Via API it simply syncs the folder even if .ignore file is present in the folder.
Run the command 'rclone version' and share the full output of the command.
rclone v1.69.1
- os/version: alpine 3.21.2 (64 bit)
- os/kernel: 6.8.0-55-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.24.0
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
OneDrive
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
curl -X POST 'http://XXXX:XXXX@192.168.1.101:5572/sync/sync?srcFs=/Docker/configs/p
hotoprism/storage&dstFs=onedrive:/Docker/configs/photoprism/storage&exclude-if-present=.ignore'```
rclone sync /Docker/configs/photoprism/storage onedrive:/Docker/configs/photoprism/storage --exclude-if-present=.ignore'
A log from the command with the -vv
flag
both commands produce same input as below:
"input": {
"dstFs": "onedrive:/Docker/configs/photoprism/storage",
"exclude-if-present": ".ignore",
"srcFs": "/Docker/configs/photoprism/storage"
},
"path": "sync/sync",
"status": 500