Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/reference/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -1656,17 +1656,17 @@ The `stageOutMode` directive defines how output files are staged out from the sc
: Output files are copied from the scratch directory to the work directory.

`'fcp'`
: :::{versionadded} 23.02.0-edge
: :::{versionadded} 23.04.0
:::
: Output files are copied from the scratch directory to the work directory by using the [fcp](https://github.com/Svetlitski/fcp) utility (note: it must be available in your cluster computing nodes).
: Output files are copied from the scratch directory to the work directory by using the [fcp](https://github.com/Svetlitski/fcp) utility (note: it must be available in the task environment).

`'move'`
: Output files are moved from the scratch directory to the work directory.

`'rclone'`
: :::{versionadded} 23.01.0-edge
: :::{versionadded} 23.04.0
:::
: Output files are copied from the scratch directory to the work directory by using the [rclone](https://rclone.org) utility (note: it must be available in your cluster computing nodes).
: Output files are copied from the scratch directory to the work directory by using the [rclone](https://rclone.org) utility (note: it must be available in the task environment).

`'rsync'`
: Output files are copied from the scratch directory to the work directory by using the `rsync` utility.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ nxf_fs_move() {
}

nxf_fs_rsync() {
rsync -rRl $1 $2
local source=$1
local target=$2
mkdir -p $target
rsync -rRl $source $target
}

nxf_fs_rclone() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,10 @@ nxf_fs_move() {
}

nxf_fs_rsync() {
rsync -rRl $1 $2
local source=$1
local target=$2
mkdir -p $target
rsync -rRl $source $target
}

nxf_fs_rclone() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ nxf_fs_move() {
}

nxf_fs_rsync() {
rsync -rRl $1 $2
local source=$1
local target=$2
mkdir -p $target
rsync -rRl $source $target
}

nxf_fs_rclone() {
Expand Down
29 changes: 29 additions & 0 deletions tests/checks/stage-out-rsync.nf/.checks
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

echo "Initial run"
$NXF_RUN | tee stdout

[[ `grep 'INFO' .nextflow.log | grep -c 'Submitted process > test'` == 3 ]] || false

grep 'cache/test/1.txt' stdout
grep 'cache/test/2.txt' stdout
grep 'cache/test/3.txt' stdout


echo "Stored run"
$NXF_RUN | tee stdout

[[ `grep 'INFO' .nextflow.log | grep -c 'Stored process > test'` == 3 ]] || false

grep 'cache/test/1.txt' stdout
grep 'cache/test/2.txt' stdout
grep 'cache/test/3.txt' stdout


echo "Resumed stored run"
$NXF_RUN -resume | tee stdout

[[ `grep 'INFO' .nextflow.log | grep -c 'Stored process > test'` == 3 ]] || false

grep 'cache/test/1.txt' stdout
grep 'cache/test/2.txt' stdout
grep 'cache/test/3.txt' stdout
22 changes: 22 additions & 0 deletions tests/stage-out-rsync.nf
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

process test {
tag "$number"
storeDir 'cache/test'
stageOutMode 'rsync'

input:
val number

output:
path('*.txt')

script:
"""
echo "This is an example process with number: ${number}" > ${number}.txt
"""
}

workflow {
numbers = channel.of(1, 2, 3)
test(numbers).view()
}
Loading