GRASS logo

NAME

g.transfer - Move or copy files or directories from source to target

KEYWORDS

general, file, directory, move, copy

SYNOPSIS

g.transfer
g.transfer --help
g.transfer [-mo] source=string target=name [nprocs=integer] [--help] [--verbose] [--quiet] [--ui]

Flags:

-m
Move files or directories (default is copy)
Move files or directories (default is copy)
-o
Overwrite existing files
Overwrite existing files
--help
Print usage summary
--verbose
Verbose module output
--quiet
Quiet module output
--ui
Force launching GUI dialog

Parameters:

source=string [required]
Path to source of files or directories to transfer (supports wildcards (*))
target=name [required]
Path to target to transfer files or directories to
nprocs=integer
Number of threads for parallel computing
Default: 1

Table of contents

DESCRIPTION

g.transfer is a simple helper module to be used in actinia to transfer files or directories from local storage on a worker node to persistent network storage.

If the target directory does not exist it is created. The source option supports the use of wildcards (*), so multiple files and/or directories can be transfered. The nprocs option allows to transfer multiple files or directories in parallel. With the m-flag the source is moved and not copied (the default).

EXAMPLES

temp_file=$(g.tempfile pid=12345)
g.transfer -f source="$temp_file" target=/tmp

AUTHOR

Stefan Blumentrath

SOURCE CODE

Available at: g.transfer source code (history)

Accessed: Friday Oct 25 13:33:09 2024


Main index | General index | Topics index | Keywords index | Graphical index | Full index

© 2003-2024 GRASS Development Team, GRASS GIS 8.4.0 Reference Manual