Opened 3 years ago

Last modified 3 years ago

#3832 new enhancement

Add environment variable to create all temp-files at a user-defined location (outside the mapsets)

Reported by: sbl Owned by: grass-dev@…
Priority: normal Milestone: 7.8.3
Component: Default Version: svn-trunk
Keywords: environment variables Cc:
CPU: Unspecified Platform: All


Some Network Attached Storage (NAS) filers with snapshot backup on volume level do not allow to exclude specific file types or directories to be excluded from backup. If GRASS data DB is stored on such a storage system, temporary files can grow the snapshot file significantly until a point where available space is used up by backup files (how fast that happens depends on the snapshot frequency of course, and the time they are preserved).

Currently, it is not possible to redirect all temporary data to other storage locations. Would be great to have an environment variable that allows to specify a path (directory) where all temporary data will be stored.

Might be necessary to make a subdirectory per mapset within that directory... (Maybe an 8.0 thing?)

Change History (7)

in reply to:  description comment:1 by neteler, 3 years ago

As a workaround you could simply replace the location/mapset/.tmp/ with a link to a directory on SSD.

However, from the planning document:

  • "implement GRASS_RASTER_TMPDIR_MAPSET like it exists for vector data (GRASS_VECTOR_TMPDIR_MAPSET), i.e. change all .tmp/ to variable in source code in init/, gis/open.c, gis/file_name.c, raster library"

Maybe to be worked out in more detail but for sure very important (we frequently face the same issue).

comment:3 by martinl, 3 years ago

Such variable is currently implemented only for vector library (GRASS_VECTOR_TMPDIR_MAPSET), see also related discussion,

comment:4 by neteler, 3 years ago


Ticket retargeted after milestone closed

comment:5 by neteler, 3 years ago


Ticket retargeted after milestone closed

comment:6 by neteler, 3 years ago

Milestone: 7.8.2

Ticket retargeted after milestone closed

comment:7 by neteler, 3 years ago

Milestone: 7.8.3
Note: See TracTickets for help on using tickets.