Working Directory Structure
- copy.list
- firstFolder
| - first.file
- secondFolder
| - second.file
How can I achieve something as follows?
- add
firstFolder
to thecopy.list
echo "firstFolder/**" > copy.list
- invoke a
copy
task viarclone
with thecopy.list
as the--include-from
parameterrclone copy --progress --include-from copy.list . remote:destination
- the transfer is in progress
Transferred: 3.568 GiB / 10.251 GiB, 35%, 21.167 MiB/s, ETA 5m23s Transferred: 0 / 1, 0% Elapsed time: 3m5.3s Transferring:
- before the transfer ends, if I add a new entry to the end of the
copy.list
echo "secondFolder/**" >> copy.list
What I expected to happen is the new entry gets picked up by the current ongoing transfer session and the new task is transferred by the current session like:
Transferred: 3.568 GiB / 10.251 GiB, 35%, 21.167 MiB/s, ETA 5m23s
-Transferred: 0 / 1, 0%
+Transferred: 0 / 2, 0%
Elapsed time: 3m5.3s
Transferring:
But what happened instead is that the current transfer session stuck to the original tasks without recognizing the updated file.
I understand that this is not the intended way of using the --include-from
file, and I am just using it to demonstrate my use case.
And My question is, is there a way to append new task to an on-going transfer session without interrupting it?
Thanks and Merry Christmas!
rclone Version
rclone v1.61.1-cold
- os/version: debian 9.13 (64 bit)
- os/kernel: 4.19.123-feral (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.19.4
- go/linking: static
- go/tags: none