g.copyall
Copies all or a filtered subset of files of selected type from another mapset to the current working mapset.
g.copyall [-t] mapset=name datatype=string [filter=string] [filter_type=string] [output_prefix=string] [--overwrite] [--verbose] [--quiet] [--qq] [--ui]
Example:
g.copyall mapset=name datatype=rast
grass.script.run_command("g.copyall", mapset, datatype="rast", filter=None, filter_type="select all", output_prefix=None, flags=None, overwrite=False, verbose=False, quiet=False, superquiet=False)
Example:
gs.run_command("g.copyall", mapset="name", datatype="rast")
Parameters
mapset=name [required]
Name of mapset (default: current search path)
Mapset to copy files from
datatype=string [required]
Choose type of GRASS data to copy
Allowed values: rast, vect, labels, rast3d, region, group
Default: rast
filter=string
Search pattern to filter data files to copy
filter_type=string
Type of search pattern to use
Allowed values: select all, wildcards, regular expressions, extended regular expressions
Default: select all
output_prefix=string
Optional prefix for output raster maps
-t
Update vector topology to match current GRASS version
--overwrite
Allow output files to overwrite existing files
--help
Print usage summary
--verbose
Verbose module output
--quiet
Quiet module output
--qq
Very quiet module output
--ui
Force launching GUI dialog
mapset : str, required
Name of mapset (default: current search path)
Mapset to copy files from
Used as: input, mapset, name
datatype : str, required
Choose type of GRASS data to copy
Allowed values: rast, vect, labels, rast3d, region, group
Default: rast
filter : str, optional
Search pattern to filter data files to copy
filter_type : str, optional
Type of search pattern to use
Allowed values: select all, wildcards, regular expressions, extended regular expressions
Default: select all
output_prefix : str, optional
Optional prefix for output raster maps
flags : str, optional
Allowed values: t
t
Update vector topology to match current GRASS version
overwrite: bool, optional
Allow output files to overwrite existing files
Default: False
verbose: bool, optional
Verbose module output
Default: False
quiet: bool, optional
Quiet module output
Default: False
superquiet: bool, optional
Very quiet module output
Default: False
DESCRIPTION
g.copyall copies maps/files of a specified from a selected mapset to the current working mapset. All maps/files can be copied or a subset of maps/files specified by a wildcard pattern or regular expression. Optionally, a prefix can be added to all files copied and vector topology can be rebuilt to match currently running version of GRASS.
EXAMPLES
Copy all raster maps from mapset "test" to current mapset and prefix them with "fromtest":
g.copyall mapset=test output_prefix=fromtest
Copy all vector maps beginning with "s" from mapset "test" to current mapset:
g.copyall mapset=test datatype=vect filter="s*"
SEE ALSO
AUTHOR
Michael Barton (Arizona State University, USA)
SOURCE CODE
Available at: g.copyall source code
(history)
Latest change: Thursday Feb 20 13:02:26 2025 in commit 53de819