Dvc: Persist\tag files from GC

Created on 12 Aug 2017  路  6Comments  路  Source: iterative/dvc

We probably need a command to keep a subset of files from GC. For example, I had a previous version of my model (branch model_v1) and now I develop a new one (model_v2).

$ git checkout model_v1
$ dvc gc --tag m1 # or dvc gc --persist
$ git checkout model_v2
$ dvc gc --tag m2 # or dvc gc --persist
$ dvc gc --nuke # Remove all cache files (need to be implement) but not persistent.

Q: Do we need tags and can we utilize Git tags?

enhancement feature request question

Most helpful comment

We don't have our own tags, but we also don't have any mechanism to persist files from gc. Maybe this will be solved by not removing data sources on gc unless special flag is specified. Would keep this for now.

All 6 comments

Added to 0.11.0 for future consideration.

Is this the same as gc --all-tags ? Is it related with #1766 ?

Closed it by mistake! My bad

@mroutis #1766 mostly.

@efiop @dmpetrov Maybe we can close this since we don't have tags at all now and gc has --all-tags?

We don't have our own tags, but we also don't have any mechanism to persist files from gc. Maybe this will be solved by not removing data sources on gc unless special flag is specified. Would keep this for now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

prihoda picture prihoda  路  3Comments

robguinness picture robguinness  路  3Comments

dnabanita7 picture dnabanita7  路  3Comments

TezRomacH picture TezRomacH  路  3Comments

jorgeorpinel picture jorgeorpinel  路  3Comments