Files deleted after renaming

What is the problem you are having with rclone?

Guys, I found a problem that I think is serious.
I'm using the latest version of rclone with full cache on unionfs.
I put a script to be executed now to rename all my subtitles from pt.srt to pt-br.srt and the first time I had no problems according to the generated log.
However, when I went to run the same script for the second time to search for folders that possibly the rclone has skipped I saw in the logs that he simply deleted all the subtitles in which he searched.
I do not die of the quantity, because when I realized I aborted the script so I would not delete anything else.

What is your rclone version (output from rclone version)

rclone v1.54.0

  • os/arch: linux/amd64
  • go version: go1.15.7

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Ubuntu Server 18.04

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

Google Drive / Team Drive

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

Paste command here
--log-level INFO
--uid=1000 --gid=1000 --umask=002
--allow-other
--bwlimit-file 16M
--dir-cache-time 360h
--user-agent HoltzFlix
--drive-skip-gdocs
--poll-interval=15s
--vfs-cache-mode full
--cache-dir=/mnt/cache
--vfs-read-ahead=256M
--vfs-cache-max-age 720h
--vfs-cache-poll-interval=15s
--vfs-cache-max-size 50G
--vfs-read-chunk-size 128M
--vfs-read-chunk-size-limit off
--buffer-size=8M
--use-mmap
--vfs-case-insensitive

A log from the command with the -vv flag

2021/02/05 19:20:54 INFO : HoltzFlix/Series/black-ish (2014)/Season 07/black-ish (2014) - S07E06 - Our Wedding Dre.pt.srt: Moved (server-side) to: HoltzFlix/Series/black-ish (2014)/Season 07/black-ish (2014) - S07E06 - Our Wedding Dre.pt-br.srt
2021/02/05 19:20:55 INFO : HoltzFlix/Series/neXt (2020)/Season 01/neXt (2020) - S01E01 - FILE #1.pt.srt: Moved (server-side) to: HoltzFlix/Series/neXt (2020)/Season 01/neXt (2020) - S01E01 - FILE #1.pt-br.srt
2021/02/05 19:20:56 INFO : HoltzFlix/Series/neXt (2020)/Season 01/neXt (2020) - S01E02 - FILE #2.pt.srt: Moved (server-side) to: HoltzFlix/Series/neXt (2020)/Season 01/neXt (2020) - S01E02 - FILE #2.pt-br.srt
2021/02/05 19:20:57 INFO : HoltzFlix/Series/neXt (2020)/Season 01/neXt (2020) - S01E03 - FILE #3.pt.srt: Moved (server-side) to: HoltzFlix/Series/neXt (2020)/Season 01/neXt (2020) - S01E03 - FILE #3.pt-br.srt
2021/02/05 19:20:58 INFO : HoltzFlix/Series/neXt (2020)/Season 01/neXt (2020) - S01E04 - FILE #4.pt.srt: Moved (server-side) to: HoltzFlix/Series/neXt (2020)/Season 01/neXt (2020) - S01E04 - FILE #4.pt-br.srt
2021/02/05 19:20:59 INFO : HoltzFlix/Series/neXt (2020)/Season 01/neXt (2020) - S01E05 - FILE #5.pt.srt: Moved (server-side) to: HoltzFlix/Series/neXt (2020)/Season 01/neXt (2020) - S01E05 - FILE #5.pt-br.srt
2021/02/05 19:21:00 INFO : HoltzFlix/Series/neXt (2020)/Season 01/neXt (2020) - S01E06 - FILE #6.pt.srt: Moved (server-side) to: HoltzFlix/Series/neXt (2020)/Season 01/neXt (2020) - S01E06 - FILE #6.pt-br.srt
2021/02/05 19:21:00 INFO : HoltzFlix/Series/neXt (2020)/Season 01/neXt (2020) - S01E07 - FILE #7.pt.srt: Moved (server-side) to: HoltzFlix/Series/neXt (2020)/Season 01/neXt (2020) - S01E07 - FILE #7.pt-br.srt
2021/02/05 19:21:01 INFO : HoltzFlix/Series/neXt (2020)/Season 01/neXt (2020) - S01E08 - FILE #8.pt.srt: Moved (server-side) to: HoltzFlix/Series/neXt (2020)/Season 01/neXt (2020) - S01E08 - FILE #8.pt-br.srt
2021/02/05 19:21:02 INFO : vfs cache: cleaned: objects 25074 (was 25074) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:21:02 INFO : HoltzFlix/Series/neXt (2020)/Season 01/neXt (2020) - S01E09 - FILE #9.pt.srt: Moved (server-side) to: HoltzFlix/Series/neXt (2020)/Season 01/neXt (2020) - S01E09 - FILE #9.pt-br.srt
2021/02/05 19:21:03 INFO : HoltzFlix/Series/neXt (2020)/Season 01/neXt (2020) - S01E10 - FILE #10.pt.srt: Moved (server-side) to: HoltzFlix/Series/neXt (2020)/Season 01/neXt (2020) - S01E10 - FILE #10.pt-br.srt
2021/02/05 19:21:17 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:21:32 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:21:47 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:22:02 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:22:17 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:22:32 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:22:47 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:23:02 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:23:17 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:23:32 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:23:47 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:24:02 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:24:17 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:24:32 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:24:47 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:25:02 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:25:17 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:25:32 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:25:47 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:26:02 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:26:17 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:26:32 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:26:47 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:27:02 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:27:17 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:27:32 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:27:47 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:28:02 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:28:17 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:28:32 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:28:47 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:29:02 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:29:17 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:29:32 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:29:37 INFO : HoltzFlix/Series/2 Broke Girls (2011)/Season 06/2 Broke Girls (2011) - S06E14 - And the Emergency Contractor.pt-br.srt: Deleted
2021/02/05 19:29:38 INFO : HoltzFlix/Series/2 Broke Girls (2011)/Season 06/2 Broke Girls (2011) - S06E14 - And the Emergency Contractor.pt.srt: Moved (server-side) to: HoltzFlix/Series/2 Broke Girls (2011)/Season 06/2 Broke Girls (2011) - S06E14 - And the Emergency Contractor.pt-br.srt
2021/02/05 19:29:39 INFO : HoltzFlix/Series/2 Broke Girls (2011)/Season 06/2 Broke Girls (2011) - S06E15 - And the Turtle Sense.pt-br.srt: Deleted
2021/02/05 19:29:39 INFO : HoltzFlix/Series/2 Broke Girls (2011)/Season 06/2 Broke Girls (2011) - S06E15 - And the Turtle Sense.pt.srt: Moved (server-side) to: HoltzFlix/Series/2 Broke Girls (2011)/Season 06/2 Broke Girls (2011) - S06E15 - And the Turtle Sense.pt-br.srt
2021/02/05 19:29:40 INFO : HoltzFlix/Series/2 Broke Girls (2011)/Season 06/2 Broke Girls (2011) - S06E16 - And the Tease Time.pt-br.srt: Deleted
2021/02/05 19:29:41 INFO : HoltzFlix/Series/2 Broke Girls (2011)/Season 06/2 Broke Girls (2011) - S06E16 - And the Tease Time.pt.srt: Moved (server-side) to: HoltzFlix/Series/2 Broke Girls (2011)/Season 06/2 Broke Girls (2011) - S06E16 - And the Tease Time.pt-br.srt
2021/02/05 19:29:42 INFO : HoltzFlix/Series/2 Broke Girls (2011)/Season 06/2 Broke Girls (2011) - S06E17 - And the Jessica Shmessica.pt-br.srt: Deleted
2021/02/05 19:29:43 INFO : HoltzFlix/Series/2 Broke Girls (2011)/Season 06/2 Broke Girls (2011) - S06E17 - And the Jessica Shmessica.pt.srt: Moved (server-side) to: HoltzFlix/Series/2 Broke Girls (2011)/Season 06/2 Broke Girls (2011) - S06E17 - And the Jessica Shmessica.pt-br.srt
2021/02/05 19:29:44 INFO : HoltzFlix/Series/24 (2001)/Season 01/24 (2001) - S01E07 - 6-00 A.M. - 7-00 A.M.pt-br.srt: Deleted
2021/02/05 19:29:44 INFO : HoltzFlix/Series/24 (2001)/Season 01/24 (2001) - S01E07 - 6-00 A.M. - 7-00 A.M.pt.srt: Moved (server-side) to: HoltzFlix/Series/24 (2001)/Season 01/24 (2001) - S01E07 - 6-00 A.M. - 7-00 A.M.pt-br.srt
2021/02/05 19:29:45 INFO : HoltzFlix/Series/24 (2001)/Season 01/24 (2001) - S01E09 - 8-00 A.M. - 9-00 A.M.pt-br.srt: Deleted
2021/02/05 19:29:46 INFO : HoltzFlix/Series/24 (2001)/Season 01/24 (2001) - S01E09 - 8-00 A.M. - 9-00 A.M.pt.srt: Moved (server-side) to: HoltzFlix/Series/24 (2001)/Season 01/24 (2001) - S01E09 - 8-00 A.M. - 9-00 A.M.pt-br.srt
2021/02/05 19:29:47 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:29:47 INFO : HoltzFlix/Series/24 (2001)/Season 01/24 (2001) - S01E11 - 10-00 A.M. - 11-00 A.M.pt-br.srt: Deleted
2021/02/05 19:29:47 INFO : HoltzFlix/Series/24 (2001)/Season 01/24 (2001) - S01E11 - 10-00 A.M. - 11-00 A.M.pt.srt: Moved (server-side) to: HoltzFlix/Series/24 (2001)/Season 01/24 (2001) - S01E11 - 10-00 A.M. - 11-00 A.M.pt-br.srt
2021/02/05 19:29:49 INFO : HoltzFlix/Series/24 (2001)/Season 02/24 (2001) - S02E03 - Day 2 - 10-00 A.M. - 11-00 A.M.pt-br.srt: Deleted
2021/02/05 19:29:50 INFO : HoltzFlix/Series/24 (2001)/Season 02/24 (2001) - S02E03 - Day 2 - 10-00 A.M. - 11-00 A.M.pt.srt: Moved (server-side) to: HoltzFlix/Series/24 (2001)/Season 02/24 (2001) - S02E03 - Day 2 - 10-00 A.M. - 11-00 A.M.pt-br.srt
2021/02/05 19:29:51 INFO : HoltzFlix/Series/24 (2001)/Season 02/24 (2001) - S02E04 - Day 2 - 11-00 A.M. - 12-00 P.M.pt-br.srt: Deleted
2021/02/05 19:29:52 INFO : HoltzFlix/Series/24 (2001)/Season 02/24 (2001) - S02E04 - Day 2 - 11-00 A.M. - 12-00 P.M.pt.srt: Moved (server-side) to: HoltzFlix/Series/24 (2001)/Season 02/24 (2001) - S02E04 - Day 2 - 11-00 A.M. - 12-00 P.M.pt-br.srt
2021/02/05 19:29:53 INFO : HoltzFlix/Series/24 (2001)/Season 02/24 (2001) - S02E05 - Day 2 - 12-00 P.M. - 1-00 P.M.pt-br.srt: Deleted
2021/02/05 19:29:53 INFO : HoltzFlix/Series/24 (2001)/Season 02/24 (2001) - S02E05 - Day 2 - 12-00 P.M. - 1-00 P.M.pt.srt: Moved (server-side) to: HoltzFlix/Series/24 (2001)/Season 02/24 (2001) - S02E05 - Day 2 - 12-00 P.M. - 1-00 P.M.pt-br.srt
2021/02/05 19:29:54 INFO : HoltzFlix/Series/24 (2001)/Season 02/24 (2001) - S02E06 - Day 2 - 1-00 P.M. - 2-00 P.M.pt-br.srt: Deleted
2021/02/05 19:29:55 INFO : HoltzFlix/Series/24 (2001)/Season 02/24 (2001) - S02E06 - Day 2 - 1-00 P.M. - 2-00 P.M.pt.srt: Moved (server-side) to: HoltzFlix/Series/24 (2001)/Season 02/24 (2001) - S02E06 - Day 2 - 1-00 P.M. - 2-00 P.M.pt-br.srt
2021/02/05 19:29:56 INFO : HoltzFlix/Series/24 (2001)/Season 02/24 (2001) - S02E07 - Day 2 - 2-00 P.M. - 3-00 P.M.pt-br.srt: Deleted
2021/02/05 19:29:56 INFO : HoltzFlix/Series/24 (2001)/Season 02/24 (2001) - S02E07 - Day 2 - 2-00 P.M. - 3-00 P.M.pt.srt: Moved (server-side) to: HoltzFlix/Series/24 (2001)/Season 02/24 (2001) - S02E07 - Day 2 - 2-00 P.M. - 3-00 P.M.pt-br.srt
2021/02/05 19:29:58 INFO : HoltzFlix/Series/24 (2001)/Season 02/24 (2001) - S02E08 - Day 2 - 3-00 P.M. - 4-00 P.M.pt-br.srt: Deleted
2021/02/05 19:29:58 INFO : HoltzFlix/Series/24 (2001)/Season 02/24 (2001) - S02E08 - Day 2 - 3-00 P.M. - 4-00 P.M.pt.srt: Moved (server-side) to: HoltzFlix/Series/24 (2001)/Season 02/24 (2001) - S02E08 - Day 2 - 3-00 P.M. - 4-00 P.M.pt-br.srt
2021/02/05 19:29:59 INFO : HoltzFlix/Series/24 (2001)/Season 02/24 (2001) - S02E09 - Day 2 - 4-00 P.M. - 5-00 P.M.pt-br.srt: Deleted
2021/02/05 19:30:00 INFO : HoltzFlix/Series/24 (2001)/Season 02/24 (2001) - S02E09 - Day 2 - 4-00 P.M. - 5-00 P.M.pt.srt: Moved (server-side) to: HoltzFlix/Series/24 (2001)/Season 02/24 (2001) - S02E09 - Day 2 - 4-00 P.M. - 5-00 P.M.pt-br.srt
2021/02/05 19:30:01 INFO : HoltzFlix/Series/24 (2001)/Season 02/24 (2001) - S02E10 - Day 2 - 5-00 P.M. - 6-00 P.M.pt-br.srt: Deleted
2021/02/05 19:30:01 INFO : HoltzFlix/Series/24 (2001)/Season 02/24 (2001) - S02E10 - Day 2 - 5-00 P.M. - 6-00 P.M.pt.srt: Moved (server-side) to: HoltzFlix/Series/24 (2001)/Season 02/24 (2001) - S02E10 - Day 2 - 5-00 P.M. - 6-00 P.M.pt-br.srt
2021/02/05 19:30:02 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:30:02 INFO : HoltzFlix/Series/24 (2001)/Season 02/24 (2001) - S02E11 - Day 2 - 6-00 P.M. - 7-00 P.M.pt-br.srt: Deleted
2021/02/05 19:30:03 INFO : HoltzFlix/Series/24 (2001)/Season 02/24 (2001) - S02E11 - Day 2 - 6-00 P.M. - 7-00 P.M.pt.srt: Moved (server-side) to: HoltzFlix/Series/24 (2001)/Season 02/24 (2001) - S02E11 - Day 2 - 6-00 P.M. - 7-00 P.M.pt-br.srt
2021/02/05 19:30:05 INFO : HoltzFlix/Series/24 (2001)/Season 03/24 (2001) - S03E03 - Day 3 - 3-00 P.M. - 4-00 P.M.pt-br.srt: Deleted
2021/02/05 19:30:06 INFO : HoltzFlix/Series/24 (2001)/Season 03/24 (2001) - S03E03 - Day 3 - 3-00 P.M. - 4-00 P.M.pt.srt: Moved (server-side) to: HoltzFlix/Series/24 (2001)/Season 03/24 (2001) - S03E03 - Day 3 - 3-00 P.M. - 4-00 P.M.pt-br.srt
2021/02/05 19:30:07 INFO : HoltzFlix/Series/24 (2001)/Season 03/24 (2001) - S03E04 - Day 3 - 4-00 P.M. - 5-00 P.M.pt-br.srt: Deleted
2021/02/05 19:30:08 INFO : HoltzFlix/Series/24 (2001)/Season 03/24 (2001) - S03E04 - Day 3 - 4-00 P.M. - 5-00 P.M.pt.srt: Moved (server-side) to: HoltzFlix/Series/24 (2001)/Season 03/24 (2001) - S03E04 - Day 3 - 4-00 P.M. - 5-00 P.M.pt-br.srt
2021/02/05 19:30:09 INFO : HoltzFlix/Series/24 (2001)/Season 03/24 (2001) - S03E05 - Day 3 - 5-00 P.M. - 6-00 P.M.pt-br.srt: Deleted
2021/02/05 19:30:09 INFO : HoltzFlix/Series/24 (2001)/Season 03/24 (2001) - S03E05 - Day 3 - 5-00 P.M. - 6-00 P.M.pt.srt: Moved (server-side) to: HoltzFlix/Series/24 (2001)/Season 03/24 (2001) - S03E05 - Day 3 - 5-00 P.M. - 6-00 P.M.pt-br.srt
2021/02/05 19:30:10 INFO : HoltzFlix/Series/24 (2001)/Season 03/24 (2001) - S03E06 - Day 3 - 6-00 P.M. - 7-00 P.M.pt-br.srt: Deleted
2021/02/05 19:30:11 INFO : HoltzFlix/Series/24 (2001)/Season 03/24 (2001) - S03E06 - Day 3 - 6-00 P.M. - 7-00 P.M.pt.srt: Moved (server-side) to: HoltzFlix/Series/24 (2001)/Season 03/24 (2001) - S03E06 - Day 3 - 6-00 P.M. - 7-00 P.M.pt-br.srt
2021/02/05 19:30:12 INFO : HoltzFlix/Series/24 (2001)/Season 03/24 (2001) - S03E07 - Day 3 - 7-00 P.M. - 8-00 P.M.pt-br.srt: Deleted
2021/02/05 19:30:13 INFO : HoltzFlix/Series/24 (2001)/Season 03/24 (2001) - S03E07 - Day 3 - 7-00 P.M. - 8-00 P.M.pt.srt: Moved (server-side) to: HoltzFlix/Series/24 (2001)/Season 03/24 (2001) - S03E07 - Day 3 - 7-00 P.M. - 8-00 P.M.pt-br.srt
2021/02/05 19:30:14 INFO : HoltzFlix/Series/24 (2001)/Season 03/24 (2001) - S03E08 - Day 3 - 8-00 P.M. - 9-00 P.M.pt-br.srt: Deleted
2021/02/05 19:30:15 INFO : HoltzFlix/Series/24 (2001)/Season 03/24 (2001) - S03E08 - Day 3 - 8-00 P.M. - 9-00 P.M.pt.srt: Moved (server-side) to: HoltzFlix/Series/24 (2001)/Season 03/24 (2001) - S03E08 - Day 3 - 8-00 P.M. - 9-00 P.M.pt-br.srt
2021/02/05 19:30:16 INFO : HoltzFlix/Series/24 (2001)/Season 03/24 (2001) - S03E09 - Day 3 - 9-00 P.M. - 10-00 P.M.pt-br.srt: Deleted
2021/02/05 19:30:16 INFO : HoltzFlix/Series/24 (2001)/Season 03/24 (2001) - S03E09 - Day 3 - 9-00 P.M. - 10-00 P.M.pt.srt: Moved (server-side) to: HoltzFlix/Series/24 (2001)/Season 03/24 (2001) - S03E09 - Day 3 - 9-00 P.M. - 10-00 P.M.pt-br.srt
2021/02/05 19:30:17 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:30:17 INFO : HoltzFlix/Series/24 (2001)/Season 03/24 (2001) - S03E10 - Day 3 - 10-00 P.M. - 11-00 P.M.pt-br.srt: Deleted
2021/02/05 19:30:18 INFO : HoltzFlix/Series/24 (2001)/Season 03/24 (2001) - S03E10 - Day 3 - 10-00 P.M. - 11-00 P.M.pt.srt: Moved (server-side) to: HoltzFlix/Series/24 (2001)/Season 03/24 (2001) - S03E10 - Day 3 - 10-00 P.M. - 11-00 P.M.pt-br.srt
2021/02/05 19:30:20 INFO : HoltzFlix/Series/24 (2001)/Season 04/24 (2001) - S04E14 - Day 4 - 8-00 P.M. - 9-00 P.M.pt-br.srt: Deleted
2021/02/05 19:30:20 INFO : HoltzFlix/Series/24 (2001)/Season 04/24 (2001) - S04E14 - Day 4 - 8-00 P.M. - 9-00 P.M.pt.srt: Moved (server-side) to: HoltzFlix/Series/24 (2001)/Season 04/24 (2001) - S04E14 - Day 4 - 8-00 P.M. - 9-00 P.M.pt-br.srt
2021/02/05 19:30:21 INFO : HoltzFlix/Series/24 (2001)/Season 04/24 (2001) - S04E15 - Day 4 - 9-00 P.M. - 10-00 P.M.pt-br.srt: Deleted
2021/02/05 19:30:22 INFO : HoltzFlix/Series/24 (2001)/Season 04/24 (2001) - S04E15 - Day 4 - 9-00 P.M. - 10-00 P.M.pt.srt: Moved (server-side) to: HoltzFlix/Series/24 (2001)/Season 04/24 (2001) - S04E15 - Day 4 - 9-00 P.M. - 10-00 P.M.pt-br.srt
2021/02/05 19:30:23 INFO : HoltzFlix/Series/24 (2001)/Season 04/24 (2001) - S04E16 - Day 4 - 10-00 P.M. - 11-00 P.M.pt-br.srt: Deleted
2021/02/05 19:30:23 INFO : HoltzFlix/Series/24 (2001)/Season 04/24 (2001) - S04E16 - Day 4 - 10-00 P.M. - 11-00 P.M.pt.srt: Moved (server-side) to: HoltzFlix/Series/24 (2001)/Season 04/24 (2001) - S04E16 - Day 4 - 10-00 P.M. - 11-00 P.M.pt-br.srt
2021/02/05 19:30:25 INFO : HoltzFlix/Series/24 (2001)/Season 04/24 (2001) - S04E20 - Day 4 - 2-00 A.M. - 3-00 A.M.pt-br.srt: Deleted
2021/02/05 19:30:25 INFO : HoltzFlix/Series/24 (2001)/Season 04/24 (2001) - S04E20 - Day 4 - 2-00 A.M. - 3-00 A.M.pt.srt: Moved (server-side) to: HoltzFlix/Series/24 (2001)/Season 04/24 (2001) - S04E20 - Day 4 - 2-00 A.M. - 3-00 A.M.pt-br.srt
2021/02/05 19:30:26 INFO : HoltzFlix/Series/24 (2001)/Season 04/24 (2001) - S04E21 - Day 4 - 3-00 A.M. - 4-00 A.M.pt-br.srt: Deleted
2021/02/05 19:30:27 INFO : HoltzFlix/Series/24 (2001)/Season 04/24 (2001) - S04E21 - Day 4 - 3-00 A.M. - 4-00 A.M.pt.srt: Moved (server-side) to: HoltzFlix/Series/24 (2001)/Season 04/24 (2001) - S04E21 - Day 4 - 3-00 A.M. - 4-00 A.M.pt-br.srt
2021/02/05 19:30:28 INFO : HoltzFlix/Series/24 (2001)/Season 04/24 (2001) - S04E22 - Day 4 - 4-00 A.M. - 5-00 A.M.pt-br.srt: Deleted
2021/02/05 19:30:28 INFO : HoltzFlix/Series/24 (2001)/Season 04/24 (2001) - S04E22 - Day 4 - 4-00 A.M. - 5-00 A.M.pt.srt: Moved (server-side) to: HoltzFlix/Series/24 (2001)/Season 04/24 (2001) - S04E22 - Day 4 - 4-00 A.M. - 5-00 A.M.pt-br.srt
2021/02/05 19:30:30 INFO : HoltzFlix/Series/24 (2001)/Season 06/24 (2001) - S06E11 - Day 6 - 4-00 P.M. - 5-00 P.M.pt-br.srt: Deleted
2021/02/05 19:30:30 INFO : HoltzFlix/Series/24 (2001)/Season 06/24 (2001) - S06E11 - Day 6 - 4-00 P.M. - 5-00 P.M.pt.srt: Moved (server-side) to: HoltzFlix/Series/24 (2001)/Season 06/24 (2001) - S06E11 - Day 6 - 4-00 P.M. - 5-00 P.M.pt-br.srt
2021/02/05 19:30:31 INFO : HoltzFlix/Series/24 (2001)/Season 06/24 (2001) - S06E12 - Day 6 - 5-00 P.M. - 6-00 P.M.pt-br.srt: Deleted
2021/02/05 19:30:32 INFO : vfs cache: cleaned: objects 25076 (was 25076) in use 0, to upload 0, uploading 0, total size 24.656G (was 24.656G)
2021/02/05 19:30:32 INFO : HoltzFlix/Series/24 (2001)/Season 06/24 (2001) - S06E12 - Day 6 - 5-00 P.M. - 6-00 P.M.pt.srt: Moved (server-side) to: HoltzFlix/Series/24 (2001)/Season 06/24 (2001) - S06E12 - Day 6 - 5-00 P.M. - 6-00 P.M.pt-br.srt
2021/02/05 19:30:34 INFO : HoltzFlix/Series/24 (2001)/Season 08/24 (2001) - S08E15 - Day 8 - 6-00 A.M. - 7-00 A.M.pt-br.srt: Deleted
2021/02/05 19:30:35 INFO : HoltzFlix/Series/24 (2001)/Season 08/24 (2001) - S08E15 - Day 8 - 6-00 A.M. - 7-00 A.M.pt.srt: Moved (server-side) to: HoltzFlix/Series/24 (2001)/Season 08/24 (2001) - S08E15 - Day 8 - 6-00 A.M. - 7-00 A.M.pt-br.srt
2021/02/05 19:30:36 INFO : HoltzFlix/Series/24 (2001)/Season 08/24 (2001) - S08E16 - Day 8 - 7-00 A.M. - 8-00 A.M.pt-br.srt: Deleted
2021/02/05 19:30:36 INFO : HoltzFlix/Series/24 (2001)/Season 08/24 (2001) - S08E16 - Day 8 - 7-00 A.M. - 8-00 A.M.pt.srt: Moved (server-side) to: HoltzFlix/Series/24 (2001)/Season 08/24 (2001) - S08E16 - Day 8 - 7-00 A.M. - 8-00 A.M.pt-br.srt
2021/02/05 19:30:37 INFO : HoltzFlix/Series/24 (2001)/Season 08/24 (2001) - S08E19 - Day 8 - 10-00 A.M. - 11-00 A.M.pt-br.srt: Deleted
2021/02/05 19:30:38 INFO : HoltzFlix/Series/24 (2001)/Season 08/24 (2001) - S08E19 - Day 8 - 10-00 A.M. - 11-00 A.M.pt.srt: Moved (server-side) to: HoltzFlix/Series/24 (2001)/Season 08/24 (2001) - S08E19 - Day 8 - 10-00 A.M. - 11-00 A.M.pt-br.srt
2021/02/05 19:30:39 INFO : HoltzFlix/Series/24 (2001)/Season 08/24 (2001) - S08E20 - Day 8 - 11-00 A.M. - 12-00 P.M.pt-br.srt: Deleted
2021/02/05 19:30:39 INFO : HoltzFlix/Series/24 (2001)/Season 08/24 (2001) - S08E20 - Day 8 - 11-00 A.M. - 12-00 P.M.pt.srt: Moved (server-side) to: HoltzFlix/Series/24 (2001)/Season 08/24 (2001) - S08E20 - Day 8 - 11-00 A.M. - 12-00 P.M.pt-br.srt
2021/02/05 19:30:40 INFO : HoltzFlix/Series/24 (2001)/Season 08/24 (2001) - S08E22 - Day 8 - 1-00 P.M. - 2-00 P.M.pt-br.srt: Deleted
2021/02/05 19:30:41 INFO : HoltzFlix/Series/24 (2001)/Season 08/24 (2001) - S08E22 - Day 8 - 1-00 P.M. - 2-00 P.M.pt.srt: Moved (server-side) to: HoltzFlix/Series/24 (2001)/Season 08/24 (2001) - S08E22 - Day 8 - 1-00 P.M. - 2-00 P.M.pt-br.srt
2021/02/05 19:30:42 INFO : HoltzFlix/Series/All American (2018)/Season 01/All American (2018) - S01E09 - Keep Ya Head Up.pt-br.srt: Deleted
2021/02/05 19:30:43 INFO : HoltzFlix/Series/All American (2018)/Season 01/All American (2018) - S01E09 - Keep Ya Head Up.pt.srt: Moved (server-side) to: HoltzFlix/Series/All American (2018)/Season 01/All American (2018) - S01E09 - Keep Ya Head Up.pt-br.srt
2021/02/05 19:30:44 INFO : HoltzFlix/Series/All American (2018)/Season 01/All American (2018) - S01E10 - m.A.A.d. city.pt-br.srt: Deleted
2021/02/05 19:30:44 INFO : HoltzFlix/Series/All American (2018)/Season 01/All American (2018) - S01E10 - m.A.A.d. city.pt.srt: Moved (server-side) to: HoltzFlix/Series/All American (2018)/Season 01/All American (2018) - S01E10 - m.A.A.d. city.pt-br.srt

What's your rclone.conf look like?

What commands got run on the mount? Can we see the script?

The script is very simple, it navigates to the / mnt / unionfs / HoltzFlix folder and runs the commands below.

IFS=$(echo -en "\n\b")
for f in $(find . -name "*.srt" | grep -v "pt-br"); do mv "$f" "$(echo $f | sed 's/.srt/.pt-br.srt/;')"; done

My montage is like this currently.
[Unit]
Description=tdrive Daemon
After=multi-user.target

[Service]
Type=notify
EnvironmentFile=/opt/appdata/plexguide/rclone.env
ExecStart=/usr/bin/rclone mount tdrive: /mnt/tdrive
--config=/opt/appdata/plexguide/rclone.conf
--log-file=/var/plexguide/logs/rclone-tdrive.log
--log-level INFO
--uid=1000 --gid=1000 --umask=002
--allow-other
--bwlimit-file 16M
--dir-cache-time 360h
--user-agent HoltzFlix
--drive-skip-gdocs
--poll-interval=15s
--vfs-cache-mode full
--cache-dir=/mnt/cache
--vfs-read-ahead=256M
--vfs-cache-max-age 720h
--vfs-cache-poll-interval=15s
--vfs-cache-max-size 50G
--vfs-read-chunk-size 128M
--vfs-read-chunk-size-limit off
--buffer-size=8M
--use-mmap
--vfs-case-insensitive
ExecStop=/bin/fusermount -uz /mnt/tdrive > /dev/null
TimeoutSec=60
User=0
Group=0

[Install]
WantedBy=multi-user.target

My rclone conf file

#------------------------------------------
#PGClone| Visit https://pgblitz.com
#------------------------------------------
[gdrive]
client_id =
client_secret =
type = drive
token =

[tdrive]
client_id =
client_secret =
type = drive
token =
team_drive =

[GDSA01]
type = drive
scope = drive
service_account_file = /opt/appdata/plexguide/.blitzkeys/GDSA01
team_drive = ************

[GDSA02]
type = drive
scope = drive
service_account_file = /opt/appdata/plexguide/.blitzkeys/GDSA02
team_drive = ***********

[pgunion]
type = union
remotes = gdrive: tdrive: /mnt/move

Your script looks simple enough...

In the log we see

2021/02/05 19:29:37 INFO : XXX.pt-br.srt: Deleted
2021/02/05 19:29:38 INFO : XXX.pt.srt: Moved (server-side) to: XXX.pt-br.srt

where XXX = HoltzFlix/Series/2 Broke Girls (2011)/Season 06/2 Broke Girls (2011) - S06E14 - And the Emergency Contractor

So what this looks like is that there was an existing XXX.pt-br.srt before your script tried to do mv XXX.pt.srt XXX.pt-br.srt, so when the mv was run, rclone deleted the existing file and then did the rename. This is exactly what you would have seen had you run the file on a local disk - mv overwrites stuff by default.

If you don't want mv to do that then use mv --no-clobber and it will refuse to overwrite existing stuff.

Nick, this doesn’t make sense to me, because I’ve always run this script and rclone never deleted what already existed. This was the first time that it happened and for that reason I was scared.
So from what you said, even if it contains (grep -v "pt-br") the mv command will rename the file to the same name, without putting another pt-br in the extension? Why has rclone never deleted files before?

If you run a move on a mount, it'll delete first and then move the file.

2021/02/07 09:01:50 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2021/02/07 09:01:50 DEBUG : one: Attr:
2021/02/07 09:01:50 DEBUG : one: >Attr: a=valid=1s ino=0 size=0 mode=-rw-rw-r--, err=<nil>
2021/02/07 09:01:50 DEBUG : two: Attr:
2021/02/07 09:01:50 DEBUG : two: >Attr: a=valid=1s ino=0 size=0 mode=-rw-rw-r--, err=<nil>
2021/02/07 09:01:50 DEBUG : /: Rename: oldName="two", newName="one", newDir=/
2021/02/07 09:01:50 INFO  : one: Deleted
2021/02/07 09:01:51 INFO  : two: Moved (server-side) to: one
2021/02/07 09:01:51 DEBUG : one: Updating file with one 0xc000196d80
2021/02/07 09:01:51 DEBUG : : Added virtual directory entry vDel: "two"
2021/02/07 09:01:51 DEBUG : : Added virtual directory entry vAddFile: "one"
2021/02/07 09:01:51 DEBUG : /: >Rename: err=<nil>

that's just a two touch commands and a move.

felix@gemini:~/test$ touch one
felix@gemini:~/test$ touch two
felix@gemini:~/test$
felix@gemini:~/test$
felix@gemini:~/test$ mv two one

You script looks for all *.srt files without pt-br and renames it from .srt to .pt-br.srt

So I would have thought that a .pt.srt should become XXX.pt.pt-br.srt not XXX.pt-br.srt - did you have a different version of the script?

That aside, the problem was that there was an .pt.srt and a .pt-br.srt file your script will overwrite the .pt-br.srt with the .pt.srt.

The script will fetch the .srt files and will check if any name of it contains en-br, if it does it will ignore and skip. If not, it will rename from .srt to .pt-br.srt

This is his basic function.

The problem is that when the script is executed and the file already contains the extension .pt-br.srt it is deleting and renaming, consequently the file is deleted.
This never happened in the old versions and I can say, I already did the test with local files and the default is for it to ignore the pt-br and not delete it.

What exactly do you mean by this?

It would be helpful to have a sequence of Unix commands which I can use to replicate the problem. You can then show what you expected and what actually happened.

If I can replicate the problem I can fix it :slightly_smiling_face:

Nick, I'm sorry I didn't answer earlier.

I took the day off today to test all the options, both local and on the mounted disk and I was unable to reproduce the error. Each time it worked correctly to rename.
I don't know what happened, and I'll leave it to me, as I may have used a different command when renaming.
I thank everyone for their efforts.
Thank you!

Thanks for having a go at reproducing.

Here is my tweet about the subject of reproducing bugs :slight_smile:

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