how: move `.dvc` files when their data is not checked out
See original GitHub issueFrom https://github.com/iterative/dvc/issues/7318:
Assume that the file
video121.mpeg
is tracked byvideo121.mpeg.dvc
. If one wants to move it to foldersubdir
it depends on whethervideo121.mpeg
is checked out.
If
video121.mpeg
is checked out, thendvc move video121.mpeg subdir/
must be used to do it safely.If
video121.mpeg
is not checked out, thenmv video121.mpeg.dvc subdir/
can be used.dvc move video121.mpeg.dvc subdir/
does not work.
Can we document somewhere that doing mv video121.mpeg.dvc subdir/
is safe when files aren’t checked out? Possible places to document this:
- https://dvc.org/doc/user-guide/how-to/update-tracked-data
- https://dvc.org/doc/command-reference/move
UPDATE: Jump to https://github.com/iterative/dvc.org/issues/3354#issuecomment-1081293810 below.
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (12 by maintainers)
Top Results From Across the Web
move | Data Version Control - DVC
dvc move is useful when a src file or directory has previously been added to the projectproject with dvc add or dvc import...
Read more >Git tracked bare DVC repo (only tracking .dvc file, but ... - GitHub
When someone need to analyse log files, they need to: Clone the git repo, git checkout a tagged version, and dvc checkout to...
Read more >April '19 DVC❤️Heartbeat - Iterative.ai
I am trying to version control datasets and models with >10 GB (Potentially even bigger). Can DVC handle this? There is no limit....
Read more >5.1. Reproducible machine learning analyses: DataLad as DVC
Afterwards, another dvc checkout will copy the files from the cache back to val/ . Alternatively, the command dvc pull performs fetch (get...
Read more >Conceptual Overview on Data version control — DVC - Medium
Your data /raw/val/ folder has been restored. If you want DVC to search through your whole repository and check out everything that's missing,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I believe mentioning this may encourage users to try an undefined behavior. Saying “
mv src.dvc target/
is safe if you update.gitignore
manually” looks like encouraging a bad practice IMHO. If they are savvy enough to know DVC internals in such a degree, I think they don’t need check the manual anyway.Sounds good. The core issue is already there in #7318, so let’s just close this one.