Skip to content

dvc add - and how I deleted all my data #1821

@smolendawid

Description

@smolendawid

I tested the functionality of dvc add and the entire pipeline on my MACOS. I saw the usage and I liked it. After the test, I deleted all .dvc.

After that I run dvc add on Ubuntu, then my disk got full, so I deleted .dvc. Suddenly I realized I deleted almost all my data.

I think it's wrong that dvc add behaves in different ways on different systems and it should be set implicitly, or some warning should be thrown to ensure user won't delete his data like me.

Don't know the solution but it should help a lot. My mistake was awful. Moreover, in doc, one-liner says that it

Take a data file or a directory under DVC control.

which is confusing because it literally moves all your data.

https://dvc.org/doc/commands-reference/add

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions