Filter-from deleting local items

What is the problem you are having with rclone?

Local items being deleted when excluded using filter-from
filter-tv_move.txt - Pastebin.com

Run the command 'rclone version' and share the full output of the command.

rclone v1.58.0

  • os/version: ubuntu 20.04 (64 bit)
  • os/kernel: 5.4.0-107-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.17.8
  • go/linking: static
  • go/tags: none

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

Google Workspaces/Drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone move -v --bwlimit=15M --config "/mnt/config/rclone/rclone.conf" --filter-from "/mnt/config/rclone/filter-tv_move.txt" -c "/mnt/local/media/tv" "cloud:/media/tv"

The rclone config contents with secrets removed.

[cloud]
type = drive
client_id = ********
client_secret = *******
scope = drive
token = {"access_token":"*******>
team_drive = 0APiGcNNBpxfZUk9PVA
root_folder_id = 0APiGcNNBpxfZUk9PVA

A log from the command with the -vv flag

rclone.log - Pastebin.com

Error, this is a private paste or is pending moderation. If this paste belongs to you, please login to Pastebin to view it.

Thanks, I'll fix it

Apologies. Please try again. I accidently set to private instead of unlisted.

hi,

filters paths are relative from the source remote, not from the root of the file system.
it is a common confusion in the forum,

perhaps the filter should be

- "/bluray/"
- "/dvd/"

and best to test filters using rclone ls,
that way, can see what rclone would do, without moving/deleteing any files.

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