Note: This document is for an older version of GRASS GIS that is outdated. You should upgrade, and read the current addon manual page.

GRASS logo

NAME

g.copyall - Copies all or a filtered subset of files of selected type from another mapset to the current working mapset.

KEYWORDS

copy, general

SYNOPSIS

g.copyall
g.copyall --help
g.copyall [-t] mapset=name datatype=string [filter=string] [filter_type=string] [output_prefix=string] [--overwrite] [--help] [--verbose] [--quiet] [--ui]

Flags:

-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
--ui
Force launching GUI dialog

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
Options: 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
Options: select all, wildcards, regular expressions, extended regular expressions
Default: select all
output_prefix=string
Optional prefix for output raster maps

Table of contents

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

g.list, g.copy

AUTHOR

Michael Barton (Arizona State University, USA)

SOURCE CODE

Available at: g.copyall source code (history)

Latest change: Thu Feb 3 09:32:35 2022 in commit: f17c792f5de56c64ecfbe63ec315307872cf9d5c


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

© 2003-2022 GRASS Development Team, GRASS GIS 8.0.3dev Reference Manual