Run an rclone copy via the API on iOS? Or, alternatives

What is the problem you are having with rclone?

I have a remote server from which I want to copy files to my Synology NAS on demand.

After some head-bashing and flailing, I got that to work with the API against rclone rc in Postman, etc on my mac. But, not on iPhone, where if the files are large and the job runs for several minutes, the API call seems to get killed and not all the files get copied.

I think iOS is the culprit but want to know if I can work around that. Can I somehow not keep the connection alive after I run the command?

If the remote will not work for me, I could use alternatives for my use case. Elsewhere, someone recommended running a script over SSH, but that would be new and I could use pointers.

I'd also love to know if there's a recommended way to get notified when a copy job finishes or fails. I noticed rclone doesn't have that feature. Ideally, I'd love an iPhone notification!

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

rclone v1.66.0
- os/version: unknown
- os/kernel: 4.4.302+ (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.22.1
- go/linking: static
- go/tags: none

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

A Debian GNU/Linux server via SFTP. I'm copying a folder on that server to my local Synology NAS.

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

In Postman on mac, the equivalent of this via API (and it works):

rclone copy my-server:/path/to/my/files /volume1/files/new-files

On iOS, the easiest way to show this is a screenshot from iOS Shortcuts. Running that causes an eventual failure after a couple of minutes, but small files get copied. Large ones fail.

I also tried a neat little app called API Bot which imports Postman files, but the same thing happened.

Rclone config

[my-server]
type = sftp
host = fred.myserver.com
user = username
key_file = /path/to/my/key/.config/rclone/id_rsa
shell_type = unix
md5sum_command = md5sum
sha1sum_command = sha1sum

Pastebin from my log file

Sanitized logs from rclone rc:

2024/05/07 23:16:02 DEBUG : rclone: Version "v1.66.0" starting with parameters ["rclone" "rcd" "--rc-web-gui" "--rc-addr" "222.22.2222.222:1716" "--rc-no-auth" "--rc-web-gui-no-open-browser" "--log-level" "DEBUG" "--log-file=/volume1/homes/LocalUser/.config/rclone/log-file.txt"]
2024/05/07 23:16:02 DEBUG : Current tag: v2.0.5, Release tag: v2.0.5
2024/05/07 23:16:02 NOTICE: Web GUI exists. Update skipped.
2024/05/07 23:16:02 NOTICE: It is recommended to use web gui with auth.
2024/05/07 23:16:02 NOTICE: Serving Web GUI
2024/05/07 23:16:02 NOTICE: Serving remote control on http://222.22.2222.222:1716/
2024/05/07 23:16:02 NOTICE: Web GUI is not automatically opening browser. Navigate to http://222.22.2222.222:1716/ to use.
2024/05/07 23:38:20 DEBUG : rc: "sync/copy": with parameters map[dstFs:/volume1/Media/files-new srcFs:remote-server:/media/sdy1/username/files-new]
2024/05/07 23:38:20 DEBUG : Creating backend with remote "remote-server:/media/sdy1/username/files-new"
2024/05/07 23:38:20 DEBUG : Using config file from "/var/services/homes/LocalUser/.config/rclone/rclone.conf"
2024/05/07 23:38:21 DEBUG : sftp://username@fred.myserver.com:22//media/sdy1/username/files-new: New connection 222.22.2222.222:49186->111.11.111.111:22 to "SSH-2.0-OpenSSH_7.4p1 Debian-10+deb9u7"
2024/05/07 23:38:21 DEBUG : sftp://username@fred.myserver.com:22//media/sdy1/username/files-new: Shell type "unix" from config
2024/05/07 23:38:22 DEBUG : sftp://username@fred.myserver.com:22//media/sdy1/username/files-new: Using root directory "/media/sdy1/username/files-new"
2024/05/07 23:38:22 DEBUG : Creating backend with remote "/volume1/Media/files-new"
2024/05/07 23:38:22 DEBUG : Example.mkv: Need to transfer - File not found at Destination
2024/05/07 23:38:22 DEBUG : rclone (1).html: Need to transfer - File not found at Destination
2024/05/07 23:38:22 DEBUG : rclone (2).html: Need to transfer - File not found at Destination
2024/05/07 23:38:22 DEBUG : rclone (3).html: Need to transfer - File not found at Destination
2024/05/07 23:38:22 DEBUG : rclone (4).html: Need to transfer - File not found at Destination
2024/05/07 23:38:22 DEBUG : rclone.html: Need to transfer - File not found at Destination
2024/05/07 23:38:22 DEBUG : Local file system at /volume1/Media/files-new: Waiting for checks to finish
2024/05/07 23:38:22 DEBUG : Example.mkv: multi-thread copy: disabling buffering because destination uses OpenWriterAt
2024/05/07 23:38:22 DEBUG : Local file system at /volume1/Media/files-new: Waiting for transfers to finish
2024/05/07 23:38:22 DEBUG : Example.mkv: multi-thread copy: write buffer set to 131072
2024/05/07 23:38:22 DEBUG : Example.mkv: multi-thread copy: using backend concurrency of 4 instead of --multi-thread-streams 4
2024/05/07 23:38:22 DEBUG : Example.mkv: Starting multi-thread copy with 264 chunks of size 64Mi with 4 parallel streams
2024/05/07 23:38:22 DEBUG : Example.mkv: multi-thread copy: chunk 1/264 (0-67108864) size 64Mi starting
2024/05/07 23:38:22 DEBUG : Example.mkv: multi-thread copy: chunk 4/264 (201326592-268435456) size 64Mi starting
2024/05/07 23:38:22 DEBUG : Example.mkv: multi-thread copy: chunk 3/264 (134217728-201326592) size 64Mi starting
2024/05/07 23:38:22 DEBUG : Example.mkv: multi-thread copy: chunk 2/264 (67108864-134217728) size 64Mi starting
2024/05/07 23:38:22 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 0
2024/05/07 23:38:22 DEBUG : sftp://username@fred.myserver.com:22//media/sdy1/username/files-new: Shell path "/media/sdy1/username/files-new/rclone (2).html"
2024/05/07 23:38:23 DEBUG : sftp://username@fred.myserver.com:22//media/sdy1/username/files-new: Running remote command: md5sum /media/sdy1/username/files-new/rclone\ \(2\).html
2024/05/07 23:38:23 DEBUG : sftp://username@fred.myserver.com:22//media/sdy1/username/files-new: New connection 222.22.2222.222:49192->111.11.111.111:22 to "SSH-2.0-OpenSSH_7.4p1 Debian-10+deb9u7"
2024/05/07 23:38:23 DEBUG : sftp://username@fred.myserver.com:22//media/sdy1/username/files-new: New connection 222.22.2222.222:49194->111.11.111.111:22 to "SSH-2.0-OpenSSH_7.4p1 Debian-10+deb9u7"
2024/05/07 23:38:23 DEBUG : sftp://username@fred.myserver.com:22//media/sdy1/username/files-new: Remote command result: 34816d0b5c1f315ad1e3d738bfb81128  /media/sdy1/username/files-new/rclone (2).html
2024/05/07 23:38:23 DEBUG : rclone (2).html: Parsed hash: 34816d0b5c1f315ad1e3d738bfb81128
2024/05/07 23:38:23 DEBUG : rclone (2).html: md5 = 34816d0b5c1f315ad1e3d738bfb81128 OK
2024/05/07 23:38:23 DEBUG : rclone (2).html.dekopeh3.partial: renamed to: rclone (2).html
2024/05/07 23:38:23 INFO  : rclone (2).html: Copied (new)
2024/05/07 23:38:23 DEBUG : sftp://username@fred.myserver.com:22//media/sdy1/username/files-new: New connection 222.22.2222.222:49196->111.11.111.111:22 to "SSH-2.0-OpenSSH_7.4p1 Debian-10+deb9u7"
2024/05/07 23:38:23 DEBUG : sftp://username@fred.myserver.com:22//media/sdy1/username/files-new: New connection 222.22.2222.222:49198->111.11.111.111:22 to "SSH-2.0-OpenSSH_7.4p1 Debian-10+deb9u7"
2024/05/07 23:38:23 DEBUG : sftp://username@fred.myserver.com:22//media/sdy1/username/files-new: New connection 222.22.2222.222:49200->111.11.111.111:22 to "SSH-2.0-OpenSSH_7.4p1 Debian-10+deb9u7"
2024/05/07 23:38:24 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 3
2024/05/07 23:38:24 DEBUG : sftp://username@fred.myserver.com:22//media/sdy1/username/files-new: Shell path "/media/sdy1/username/files-new/rclone (4).html"
2024/05/07 23:38:24 DEBUG : sftp://username@fred.myserver.com:22//media/sdy1/username/files-new: Shell path "/media/sdy1/username/files-new/rclone (1).html"
2024/05/07 23:38:24 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 2
2024/05/07 23:38:24 DEBUG : sftp://username@fred.myserver.com:22//media/sdy1/username/files-new: Running remote command: md5sum /media/sdy1/username/files-new/rclone\ \(4\).html
2024/05/07 23:38:24 DEBUG : sftp://username@fred.myserver.com:22//media/sdy1/username/files-new: Running remote command: md5sum /media/sdy1/username/files-new/rclone\ \(1\).html
2024/05/07 23:38:24 DEBUG : sftp://username@fred.myserver.com:22//media/sdy1/username/files-new: Shell path "/media/sdy1/username/files-new/rclone (3).html"
2024/05/07 23:38:24 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 1
2024/05/07 23:38:24 DEBUG : sftp://username@fred.myserver.com:22//media/sdy1/username/files-new: Remote command result: 8095bf70e4498f1a88e1de45bba9c89d  /media/sdy1/username/files-new/rclone (4).html
2024/05/07 23:38:24 DEBUG : rclone (4).html: Parsed hash: 8095bf70e4498f1a88e1de45bba9c89d
2024/05/07 23:38:24 DEBUG : rclone (4).html: md5 = 8095bf70e4498f1a88e1de45bba9c89d OK
2024/05/07 23:38:24 DEBUG : rclone (4).html.pisebap2.partial: renamed to: rclone (4).html
2024/05/07 23:38:24 INFO  : rclone (4).html: Copied (new)
2024/05/07 23:38:24 DEBUG : sftp://username@fred.myserver.com:22//media/sdy1/username/files-new: Remote command result: 05822ab915ee79e60827f774b051aeb0  /media/sdy1/username/files-new/rclone (1).html
2024/05/07 23:38:24 DEBUG : rclone (1).html: Parsed hash: 05822ab915ee79e60827f774b051aeb0
2024/05/07 23:38:24 DEBUG : rclone (1).html: md5 = 05822ab915ee79e60827f774b051aeb0 OK
2024/05/07 23:38:24 DEBUG : rclone (1).html.tusekap8.partial: renamed to: rclone (1).html
2024/05/07 23:38:24 INFO  : rclone (1).html: Copied (new)
2024/05/07 23:38:24 DEBUG : sftp://username@fred.myserver.com:22//media/sdy1/username/files-new: Running remote command: md5sum /media/sdy1/username/files-new/rclone\ \(3\).html
2024/05/07 23:38:24 DEBUG : sftp://username@fred.myserver.com:22//media/sdy1/username/files-new: Remote command result: 62b7e67bef85334fb03d14fd10b17b85  /media/sdy1/username/files-new/rclone (3).html
2024/05/07 23:38:24 DEBUG : rclone (3).html: Parsed hash: 62b7e67bef85334fb03d14fd10b17b85
2024/05/07 23:38:24 DEBUG : rclone (3).html: md5 = 62b7e67bef85334fb03d14fd10b17b85 OK
2024/05/07 23:38:24 DEBUG : rclone (3).html.meqivan1.partial: renamed to: rclone (3).html
2024/05/07 23:38:24 INFO  : rclone (3).html: Copied (new)
2024/05/07 23:38:25 DEBUG : sftp://username@fred.myserver.com:22//media/sdy1/username/files-new: Shell path "/media/sdy1/username/files-new/rclone.html"
2024/05/07 23:38:25 DEBUG : sftp://username@fred.myserver.com:22//media/sdy1/username/files-new: Running remote command: md5sum /media/sdy1/username/files-new/rclone.html
2024/05/07 23:38:25 DEBUG : sftp://username@fred.myserver.com:22//media/sdy1/username/files-new: Remote command result: 7c5da6c6e89cb83cf78971c29e9e0532  /media/sdy1/username/files-new/rclone.html
2024/05/07 23:38:25 DEBUG : rclone.html: Parsed hash: 7c5da6c6e89cb83cf78971c29e9e0532
2024/05/07 23:38:25 DEBUG : rclone.html: md5 = 7c5da6c6e89cb83cf78971c29e9e0532 OK
2024/05/07 23:38:25 DEBUG : rclone.html.xotoxin6.partial: renamed to: rclone.html
2024/05/07 23:38:25 INFO  : rclone.html: Copied (new)
2024/05/07 23:38:27 DEBUG : Example.mkv: multi-thread copy: chunk 1/264 (0-67108864) size 64Mi finished
2024/05/07 23:38:27 DEBUG : Example.mkv: multi-thread copy: chunk 5/264 (268435456-335544320) size 64Mi starting
2024/05/07 23:38:27 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 4
2024/05/07 23:38:28 DEBUG : Example.mkv: multi-thread copy: chunk 3/264 (134217728-201326592) size 64Mi finished
2024/05/07 23:38:28 DEBUG : Example.mkv: multi-thread copy: chunk 6/264 (335544320-402653184) size 64Mi starting
2024/05/07 23:38:29 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 5
2024/05/07 23:38:29 DEBUG : Example.mkv: multi-thread copy: chunk 4/264 (201326592-268435456) size 64Mi finished
2024/05/07 23:38:29 DEBUG : Example.mkv: multi-thread copy: chunk 7/264 (402653184-469762048) size 64Mi starting
2024/05/07 23:38:29 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 6
2024/05/07 23:38:32 DEBUG : Example.mkv: multi-thread copy: chunk 6/264 (335544320-402653184) size 64Mi finished
2024/05/07 23:38:32 DEBUG : Example.mkv: multi-thread copy: chunk 8/264 (469762048-536870912) size 64Mi starting
2024/05/07 23:38:32 DEBUG : Example.mkv: multi-thread copy: chunk 2/264 (67108864-134217728) size 64Mi finished
2024/05/07 23:38:33 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 7
2024/05/07 23:38:33 DEBUG : Example.mkv: multi-thread copy: chunk 9/264 (536870912-603979776) size 64Mi starting
2024/05/07 23:38:33 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 8
2024/05/07 23:38:34 DEBUG : Example.mkv: multi-thread copy: chunk 5/264 (268435456-335544320) size 64Mi finished
2024/05/07 23:38:34 DEBUG : Example.mkv: multi-thread copy: chunk 10/264 (603979776-671088640) size 64Mi starting
2024/05/07 23:38:34 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 9
2024/05/07 23:38:34 DEBUG : Example.mkv: multi-thread copy: chunk 7/264 (402653184-469762048) size 64Mi finished
2024/05/07 23:38:35 DEBUG : Example.mkv: multi-thread copy: chunk 11/264 (671088640-738197504) size 64Mi starting
2024/05/07 23:38:35 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 10
2024/05/07 23:38:38 DEBUG : Example.mkv: multi-thread copy: chunk 9/264 (536870912-603979776) size 64Mi finished
2024/05/07 23:38:38 DEBUG : Example.mkv: multi-thread copy: chunk 12/264 (738197504-805306368) size 64Mi starting
2024/05/07 23:38:38 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 11
2024/05/07 23:38:39 DEBUG : Example.mkv: multi-thread copy: chunk 10/264 (603979776-671088640) size 64Mi finished
2024/05/07 23:38:39 DEBUG : Example.mkv: multi-thread copy: chunk 13/264 (805306368-872415232) size 64Mi starting
2024/05/07 23:38:39 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 12
2024/05/07 23:38:40 DEBUG : Example.mkv: multi-thread copy: chunk 11/264 (671088640-738197504) size 64Mi finished
2024/05/07 23:38:40 DEBUG : Example.mkv: multi-thread copy: chunk 14/264 (872415232-939524096) size 64Mi starting
2024/05/07 23:38:40 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 13
2024/05/07 23:38:43 DEBUG : Example.mkv: multi-thread copy: chunk 12/264 (738197504-805306368) size 64Mi finished
2024/05/07 23:38:43 DEBUG : Example.mkv: multi-thread copy: chunk 15/264 (939524096-1006632960) size 64Mi starting
2024/05/07 23:38:43 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 14
2024/05/07 23:38:44 DEBUG : Example.mkv: multi-thread copy: chunk 13/264 (805306368-872415232) size 64Mi finished
2024/05/07 23:38:44 DEBUG : Example.mkv: multi-thread copy: chunk 16/264 (1006632960-1073741824) size 64Mi starting
2024/05/07 23:38:44 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 15
2024/05/07 23:38:44 DEBUG : Example.mkv: multi-thread copy: chunk 8/264 (469762048-536870912) size 64Mi finished
2024/05/07 23:38:45 DEBUG : Example.mkv: multi-thread copy: chunk 17/264 (1073741824-1140850688) size 64Mi starting
2024/05/07 23:38:45 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 16
2024/05/07 23:38:47 DEBUG : Example.mkv: multi-thread copy: chunk 14/264 (872415232-939524096) size 64Mi finished
2024/05/07 23:38:47 DEBUG : Example.mkv: multi-thread copy: chunk 18/264 (1140850688-1207959552) size 64Mi starting
2024/05/07 23:38:47 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 17
2024/05/07 23:38:48 DEBUG : Example.mkv: multi-thread copy: chunk 15/264 (939524096-1006632960) size 64Mi finished
2024/05/07 23:38:48 DEBUG : Example.mkv: multi-thread copy: chunk 19/264 (1207959552-1275068416) size 64Mi starting
2024/05/07 23:38:48 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 18
2024/05/07 23:38:50 DEBUG : Example.mkv: multi-thread copy: chunk 16/264 (1006632960-1073741824) size 64Mi finished
2024/05/07 23:38:50 DEBUG : Example.mkv: multi-thread copy: chunk 20/264 (1275068416-1342177280) size 64Mi starting
2024/05/07 23:38:50 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 19
2024/05/07 23:38:52 DEBUG : Example.mkv: multi-thread copy: chunk 18/264 (1140850688-1207959552) size 64Mi finished
2024/05/07 23:38:52 DEBUG : Example.mkv: multi-thread copy: chunk 21/264 (1342177280-1409286144) size 64Mi starting
2024/05/07 23:38:52 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 20
2024/05/07 23:38:54 DEBUG : Example.mkv: multi-thread copy: chunk 19/264 (1207959552-1275068416) size 64Mi finished
2024/05/07 23:38:54 DEBUG : Example.mkv: multi-thread copy: chunk 22/264 (1409286144-1476395008) size 64Mi starting
2024/05/07 23:38:54 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 21
2024/05/07 23:38:55 DEBUG : Example.mkv: multi-thread copy: chunk 20/264 (1275068416-1342177280) size 64Mi finished
2024/05/07 23:38:55 DEBUG : Example.mkv: multi-thread copy: chunk 23/264 (1476395008-1543503872) size 64Mi starting
2024/05/07 23:38:56 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 22
2024/05/07 23:38:57 DEBUG : Example.mkv: multi-thread copy: chunk 17/264 (1073741824-1140850688) size 64Mi finished
2024/05/07 23:38:58 DEBUG : Example.mkv: multi-thread copy: chunk 21/264 (1342177280-1409286144) size 64Mi finished
2024/05/07 23:38:58 DEBUG : Example.mkv: multi-thread copy: chunk 24/264 (1543503872-1610612736) size 64Mi starting
2024/05/07 23:38:58 DEBUG : Example.mkv: multi-thread copy: chunk 25/264 (1610612736-1677721600) size 64Mi starting
2024/05/07 23:38:58 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 23
2024/05/07 23:38:58 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 24
2024/05/07 23:38:59 DEBUG : Example.mkv: multi-thread copy: chunk 22/264 (1409286144-1476395008) size 64Mi finished
2024/05/07 23:38:59 DEBUG : Example.mkv: multi-thread copy: chunk 26/264 (1677721600-1744830464) size 64Mi starting
2024/05/07 23:38:59 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 25
2024/05/07 23:39:02 DEBUG : Example.mkv: multi-thread copy: chunk 23/264 (1476395008-1543503872) size 64Mi finished
2024/05/07 23:39:03 DEBUG : Example.mkv: multi-thread copy: chunk 27/264 (1744830464-1811939328) size 64Mi starting
2024/05/07 23:39:03 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 26
2024/05/07 23:39:03 DEBUG : Example.mkv: multi-thread copy: chunk 25/264 (1610612736-1677721600) size 64Mi finished
2024/05/07 23:39:03 DEBUG : Example.mkv: multi-thread copy: chunk 28/264 (1811939328-1879048192) size 64Mi starting
2024/05/07 23:39:04 DEBUG : Example.mkv: multi-thread copy: chunk 24/264 (1543503872-1610612736) size 64Mi finished
2024/05/07 23:39:04 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 27
2024/05/07 23:39:04 DEBUG : Example.mkv: multi-thread copy: chunk 29/264 (1879048192-1946157056) size 64Mi starting
2024/05/07 23:39:04 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 28
2024/05/07 23:39:08 DEBUG : Example.mkv: multi-thread copy: chunk 27/264 (1744830464-1811939328) size 64Mi finished
2024/05/07 23:39:08 DEBUG : Example.mkv: multi-thread copy: chunk 30/264 (1946157056-2013265920) size 64Mi starting
2024/05/07 23:39:08 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 29
2024/05/07 23:39:10 DEBUG : Example.mkv: multi-thread copy: chunk 29/264 (1879048192-1946157056) size 64Mi finished
2024/05/07 23:39:10 DEBUG : Example.mkv: multi-thread copy: chunk 31/264 (2013265920-2080374784) size 64Mi starting
2024/05/07 23:39:10 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 30
2024/05/07 23:39:10 DEBUG : Example.mkv: multi-thread copy: chunk 28/264 (1811939328-1879048192) size 64Mi finished
2024/05/07 23:39:10 DEBUG : Example.mkv: multi-thread copy: chunk 32/264 (2080374784-2147483648) size 64Mi starting
2024/05/07 23:39:10 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 31
2024/05/07 23:39:11 DEBUG : Example.mkv: multi-thread copy: chunk 26/264 (1677721600-1744830464) size 64Mi finished
2024/05/07 23:39:11 DEBUG : Example.mkv: multi-thread copy: chunk 33/264 (2147483648-2214592512) size 64Mi starting
2024/05/07 23:39:11 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 32
2024/05/07 23:39:12 DEBUG : Example.mkv: multi-thread copy: chunk 30/264 (1946157056-2013265920) size 64Mi finished
2024/05/07 23:39:12 DEBUG : Example.mkv: multi-thread copy: chunk 34/264 (2214592512-2281701376) size 64Mi starting
2024/05/07 23:39:12 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 33
2024/05/07 23:39:15 DEBUG : Example.mkv: multi-thread copy: chunk 31/264 (2013265920-2080374784) size 64Mi finished
2024/05/07 23:39:15 DEBUG : Example.mkv: multi-thread copy: chunk 32/264 (2080374784-2147483648) size 64Mi finished
2024/05/07 23:39:15 DEBUG : Example.mkv: multi-thread copy: chunk 35/264 (2281701376-2348810240) size 64Mi starting
2024/05/07 23:39:15 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 34
2024/05/07 23:39:15 DEBUG : Example.mkv: multi-thread copy: chunk 36/264 (2348810240-2415919104) size 64Mi starting
2024/05/07 23:39:15 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 35
2024/05/07 23:39:17 DEBUG : Example.mkv: multi-thread copy: chunk 33/264 (2147483648-2214592512) size 64Mi finished
2024/05/07 23:39:17 DEBUG : Example.mkv: multi-thread copy: chunk 37/264 (2415919104-2483027968) size 64Mi starting
2024/05/07 23:39:18 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 36
2024/05/07 23:39:20 DEBUG : Example.mkv: multi-thread copy: chunk 36/264 (2348810240-2415919104) size 64Mi finished
2024/05/07 23:39:20 DEBUG : Example.mkv: multi-thread copy: chunk 34/264 (2214592512-2281701376) size 64Mi finished
2024/05/07 23:39:20 DEBUG : Example.mkv: multi-thread copy: chunk 38/264 (2483027968-2550136832) size 64Mi starting
2024/05/07 23:39:20 DEBUG : Example.mkv: multi-thread copy: chunk 39/264 (2550136832-2617245696) size 64Mi starting
2024/05/07 23:39:20 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 37
2024/05/07 23:39:20 DEBUG : Example.mkv.qiqiqiq4.partial: writing chunk 38
2024/05/07 23:39:20 DEBUG : Example.mkv: multi-thread copy: chunk 35/264 failed: multi-thread copy: failed to write chunk: context canceled
2024/05/07 23:39:20 DEBUG : Example.mkv: multi-thread copy: chunk 37/264 failed: multi-thread copy: failed to write chunk: context canceled
2024/05/07 23:39:21 DEBUG : Example.mkv: multi-thread copy: chunk 38/264 failed: multi-thread copy: failed to write chunk: context canceled
2024/05/07 23:39:21 DEBUG : Example.mkv: multi-thread copy: chunk 39/264 failed: multi-thread copy: failed to write chunk: context canceled
2024/05/07 23:39:21 DEBUG : Example.mkv: multi-thread copy: cancelling transfer on exit
2024/05/07 23:39:22 ERROR : Example.mkv: Failed to copy: multi-thread copy: failed to write chunk: context canceled
2024/05/07 23:39:22 ERROR : rc: "sync/copy": error: multi-thread copy: failed to write chunk: context canceled
2024/05/07 23:40:20 DEBUG : sftp://username@fred.myserver.com:22//media/sdy1/username/files-new: Closing 6 unused connections
2024/05/07 23:43:58 DEBUG : rc: "sync/copy": with parameters map[dstFs:/volume1/Media/files-new srcFs:remote-server:/media/sdy1/username/files-new]

i ssh into my android phone using termux, a terminal emulator.
the downside to ssh; if you close the terminal window, the command running is hard killed.
to workaround that, i use tmux. or could use screen.

might check out https://ish.app/

I have been using https://termius.com/ for years. Free or paid version work perfectly. Like @asdffdsa already mentioned if you need to close session and run stuff use tmux or screen.

If you use _async=True (or JSON equiv) can't you not worry about the timeout? Then you can use Shortcuts to trigger the API.

Personally, I don't do all that and instead use Shortcuts to call the command on a remote VPS with a call to GNU screen too so that I can jump back to it if I need to

Thanks for this. That's what I was hoping for and it works 100%. I'm pretty new to APIs and had a sense that something like this was what I needed, but didn't describe it well.

I may as well ask! Looking through the forums now for notification methods, do you have any suggestions?

You can query it on some interval. The example from the docs is

$ rclone rc --json '{ "jobid":2 }' job/status

(or any of the other API call methods)

Does that help? It's not a push or anything but you could probably tune the polling frequency. It's a lightweight API call.

1 Like

Much appreciated!

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