I've written a script for downloading items using SFTP over rclone, and it has worked pretty well so far. However, earlier today I ran a transfer and noticed that it was attempting to transfer files that were not on the download list. This is the command that was running:
rclone copy --include-from "$LOGFOLDER"/Current.txt "$REMOTE" "$DEST"
I noticed there was a problem because one of the files couldn't be transferred because it was no longer there. I checked the Current.txt file and the file that caused the error was not listed in that document, so it shouldn't have been downloading.
It seems like it's working okay now. This appears to have happened out of the blue which makes it even more frustrating to figure out why.
rclone v1.62.2
- os/version: slackware 15.0+ (64 bit)
- os/kernel: 5.19.17-Unraid (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.20.2
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
I'm using SFTP from a seedbox
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone copy --include-from "$LOGFOLDER"/Current.txt "$REMOTE" "$DEST"
The rclone config contents with secrets removed.
[USBX]
type = sftp
host = hostname
user = username
pass = password
shell_type = unix
md5sum_command = md5sum
sha1sum_command = sha1sum
A log from the command with the -vv
flag
I'm not sure if it's feasible to do this here. Each download command typically takes at least 8 hours to complete and the output would be extremely long. I can try to do that if I need to. Here is a very small sample of the output when using -v which is currently running.
Download date is 2023-03-26T18:46:51+00:00, previous download was 2000-01-01
Previous download list found. Downloading only new files from Seedbox.
2023/03/26 14:47:59 INFO :
Transferred: 143.840 MiB / 74.363 GiB, 0%, 2.840 MiB/s, ETA 7h26m2s
Checks: 29 / 29, 100%
Transferred: 0 / 162, 0%
Elapsed time: 1m2.3s
Transferring:
* Casserine_-_We_Gotta_Run_(ntsc_cda_astro).vob: 8% /288.982Mi, 474.066Ki/s, 9m34s
* Fantaghirò 1.1.mkv: 1% /3.539Gi, 1.052Mi/s, 56m37s
* Cat Stevens - Wild world (PAL-DD2.0).VOB: 14% /190.781Mi, 333.586Ki/s, 8m22s
* Fantaghirò 1.2.mkv: 1% /3.496Gi, 1019.802Ki/s, 59m11s
2023/03/26 14:48:59 INFO :
Transferred: 304.527 MiB / 81.066 GiB, 0%, 2.578 MiB/s, ETA 8h54m36s
Checks: 29 / 29, 100%
Transferred: 0 / 176, 0%
Elapsed time: 2m2.3s
Transferring:
* Casserine_-_We_Gotta_Run_(ntsc_cda_astro).vob: 17% /288.982Mi, 465.763Ki/s, 8m43s
* Fantaghirò 1.1.mkv: 2% /3.539Gi, 933.946Ki/s, 1h4m15s
* Cat Stevens - Wild world (PAL-DD2.0).VOB: 23% /190.781Mi, 254.716Ki/s, 9m50s
* Fantaghirò 1.2.mkv: 2% /3.496Gi, 982.068Ki/s, 1h0m26s
2023/03/26 14:49:59 INFO :
Transferred: 449.309 MiB / 81.066 GiB, 1%, 2.043 MiB/s, ETA 11h13m34s
Checks: 29 / 29, 100%
Transferred: 0 / 176, 0%
Elapsed time: 3m2.3s
Transferring:
* Casserine_-_We_Gotta_Run_(ntsc_cda_astro).vob: 27% /288.982Mi, 412.498Ki/s, 8m40s
* Fantaghirò 1.1.mkv: 4% /3.539Gi, 709.346Ki/s, 1h23m23s
* Cat Stevens - Wild world (PAL-DD2.0).VOB: 30% /190.781Mi, 206.346Ki/s, 10m58s
* Fantaghirò 1.2.mkv: 4% /3.496Gi, 761.902Ki/s, 1h16m44s
2023/03/26 14:50:59 INFO :
Transferred: 625.871 MiB / 86.509 GiB, 1%, 2.832 MiB/s, ETA 8h37m39s
Checks: 29 / 29, 100%
Transferred: 0 / 188, 0%
Elapsed time: 4m2.3s
Transferring:
* Casserine_-_We_Gotta_Run_(ntsc_cda_astro).vob: 38% /288.982Mi, 523.479Ki/s, 5m46s
* Fantaghirò 1.1.mkv: 6% /3.539Gi, 1.017Mi/s, 55m47s
* Cat Stevens - Wild world (PAL-DD2.0).VOB: 38% /190.781Mi, 272.455Ki/s, 7m18s
* Fantaghirò 1.2.mkv: 6% /3.496Gi, 1.035Mi/s, 54m6s
2023/03/26 14:51:59 INFO :
Transferred: 800.590 MiB / 89.841 GiB, 1%, 2.927 MiB/s, ETA 8h39m14s
Checks: 29 / 29, 100%
Transferred: 0 / 214, 0%
Elapsed time: 5m2.3s
Transferring:
* Casserine_-_We_Gotta_Run_(ntsc_cda_astro).vob: 49% /288.982Mi, 546.629Ki/s, 4m34s
* Fantaghirò 1.1.mkv: 7% /3.539Gi, 1.072Mi/s, 51m55s
* Cat Stevens - Wild world (PAL-DD2.0).VOB: 48% /190.781Mi, 331.598Ki/s, 5m5s
* Fantaghirò 1.2.mkv: 7% /3.496Gi, 1.057Mi/s, 51m58s
2023/03/26 14:52:59 INFO :
Transferred: 987.277 MiB / 93.152 GiB, 1%, 3.175 MiB/s, ETA 8h15m29s
Checks: 29 / 29, 100%
Transferred: 0 / 222, 0%
Elapsed time: 6m2.3s
Transferring:
* Casserine_-_We_Gotta_Run_(ntsc_cda_astro).vob: 60% /288.982Mi, 551.896Ki/s, 3m31s
* Fantaghirò 1.1.mkv: 9% /3.539Gi, 1.138Mi/s, 47m56s
* Cat Stevens - Wild world (PAL-DD2.0).VOB: 57% /190.781Mi, 311.469Ki/s, 4m28s
* Fantaghirò 1.2.mkv: 9% /3.496Gi, 1.191Mi/s, 45m10s
2023/03/26 14:53:59 INFO :
Transferred: 1.147 GiB / 93.152 GiB, 1%, 3.145 MiB/s, ETA 8h19m18s
Checks: 29 / 29, 100%
Transferred: 0 / 222, 0%
Elapsed time: 7m2.3s
Transferring:
* Casserine_-_We_Gotta_Run_(ntsc_cda_astro).vob: 71% /288.982Mi, 559.057Ki/s, 2m29s
* Fantaghirò 1.1.mkv: 11% /3.539Gi, 1.158Mi/s, 46m5s
* Cat Stevens - Wild world (PAL-DD2.0).VOB: 66% /190.781Mi, 318.573Ki/s, 3m25s
* Fantaghirò 1.2.mkv: 11% /3.496Gi, 1.128Mi/s, 46m42s
2023/03/26 14:54:59 INFO :
Transferred: 1.326 GiB / 93.152 GiB, 1%, 3.087 MiB/s, ETA 8h27m39s
Checks: 29 / 29, 100%
Transferred: 0 / 222, 0%
Elapsed time: 8m2.3s
Transferring:
* Casserine_-_We_Gotta_Run_(ntsc_cda_astro).vob: 82% /288.982Mi, 552.864Ki/s, 1m31s
* Fantaghirò 1.1.mkv: 13% /3.539Gi, 1.085Mi/s, 48m11s
* Cat Stevens - Wild world (PAL-DD2.0).VOB: 75% /190.781Mi, 325.612Ki/s, 2m27s
* Fantaghirò 1.2.mkv: 13% /3.496Gi, 1.143Mi/s, 45m5s
2023/03/26 14:55:59 INFO :
Transferred: 1.504 GiB / 101.737 GiB, 1%, 3.027 MiB/s, ETA 9h25m3s
Checks: 29 / 29, 100%
Transferred: 0 / 233, 0%
Elapsed time: 9m2.3s
Transferring:
* Casserine_-_We_Gotta_Run_(ntsc_cda_astro).vob: 93% /288.982Mi, 517.867Ki/s, 38s
* Fantaghirò 1.1.mkv: 15% /3.539Gi, 1.131Mi/s, 45m13s
* Cat Stevens - Wild world (PAL-DD2.0).VOB: 84% /190.781Mi, 322.912Ki/s, 1m31s
* Fantaghirò 1.2.mkv: 15% /3.496Gi, 1.075Mi/s, 46m54s