[GRASSLIST:9792] Re: Bash shell scripting question for batch archiving Grass vectors

Do you know why specifically it may not be the best way to export
vectors (or rasters) this way? Assuming the target location the tarred
vectors are going to has the same projection and datum, can't it be
dragged and dropped?

My concern is that there may be some other, necessary, information outside

the 'vector' directory. In 'dbf', for example.

An export-procedure should take care of those as well, while just tarring

the content of 'vector' does not.

-flo.

Then how about (in PERMANENT):

for map in `g.mlist type=vect pattern='vectorname'`; do tar cvf `basename
$map.tar` ./*/$map* ; done

Would that be sufficient?

~ Eric.

On 11.01.2006, at 16:45, Patton, Eric wrote:

Then how about (in PERMANENT):

for map in `g.mlist type=vect pattern='vectorname'`; do tar cvf `basename
$map.tar` ./*/$map* ; done

Would that be sufficient?

Looks good to me.
Alas, I'm not so proficient in GRASS GIS that I could give a definite advice on that.

I'd add the z flag to tar (tar cvzf ...) for compression.

-flo.