question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

how: move `.dvc` files when their data is not checked out

See original GitHub issue

From https://github.com/iterative/dvc/issues/7318:

Assume that the file video121.mpeg is tracked by video121.mpeg.dvc. If one wants to move it to folder subdir it depends on whether video121.mpeg is checked out.

  1. If video121.mpeg is checked out, then dvc move video121.mpeg subdir/ must be used to do it safely.

  2. If video121.mpeg is not checked out, then mv 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:

UPDATE: Jump to https://github.com/iterative/dvc.org/issues/3354#issuecomment-1081293810 below.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
iesahincommented, Mar 29, 2022

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.

1reaction
dberenbaumcommented, Mar 30, 2022

Sounds good. The core issue is already there in #7318, so let’s just close this one.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found