RClone sync/copy with include/exclude filters using API

What is the problem you are having with rclone?

How to add include/exclude filter details as request parameter to sync/copy remote control API

What is your rclone version (output from rclone version)

rclone v1.56.0

  • os/version: ubuntu 14.04 (64 bit)
  • os/kernel: 5.11.0-27-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.16.5
  • go/linking: static
  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)

Google cloud storage

The command you were trying to run (eg rclone copy /tmp remote:tmp){"filter" ; {"ExcludeFile":"cloud_data/app.log"}}

The rclone config contents with secrets removed.

set RCLONE_GCS_SERVICE_ACCOUNT_FILE=/data/gcs-config.json
rclone config create gcs gcs gcs-service-account-file /data/gcs-config.json

A log from the command with the -vv flag

Paste  log here

What you do is set the _filter parameter.

The above link shows some basic documentation - it could do with being expanded!

Thank you very much, it is working, I missed the underscore before filter., you can close the ticket.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.