# How cache is maintained for big data size locally

**URL:** https://discuss.dvc.org/t/how-cache-is-maintained-for-big-data-size-locally/217
**Category:** Questions
**Created:** [September 12, 2019, 1:55am UTC](https://discuss.dvc.org/t/how-cache-is-maintained-for-big-data-size-locally/217 "2019-09-12T01:55:47Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![writetoneeraj](https://avatars.discourse-cdn.com/v4/letter/w/dec6dc/32.png) [@writetoneeraj](https://discuss.dvc.org/u/writetoneeraj)
#### Post date: [September 12, 2019, 1:55am UTC](https://discuss.dvc.org/t/how-cache-is-maintained-for-big-data-size-locally/217/1 "2019-09-12T01:55:47Z")

</div>

Hi,  
I have a VM on which my local git repo exists. On top of that i have installed dvc on same machine. Now when i add data to dvc it will be in dvc cache and on git push, commit same data will go to git repo as well. Is my understanding correct? If yes then their will be two copies of data and size will keep increasing as data grows. I am not using any remote repo for data.

---

<div class="post-metadata">

### Author: ![dashohoxha](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.dvc.org/dashohoxha/32/45_2.png) [@dashohoxha](https://discuss.dvc.org/u/dashohoxha)
#### Post date: [September 12, 2019, 3:36am UTC](https://discuss.dvc.org/t/how-cache-is-maintained-for-big-data-size-locally/217/2 "2019-09-12T03:36:35Z")

</div>

@writetoneeraj Could you please have a look at this tutorial: [https://katacoda.com/dvc](https://katacoda.com/dvc) ? It explains how DVC manages the data. If you still have any questions please come back and ask.

---

<div class="post-metadata">

### Author: ![kupruser](https://avatars.discourse-cdn.com/v4/letter/k/e95f7d/32.png) [@kupruser](https://discuss.dvc.org/u/kupruser)
#### Post date: [September 13, 2019, 2:44am UTC](https://discuss.dvc.org/t/how-cache-is-maintained-for-big-data-size-locally/217/3 "2019-09-13T02:44:01Z")

</div>

Thanks @dashohoxha , that looks great!

@writetoneeraj No, data won’t go into your git repo, only tiny metafiles (DVC-files), so there won’t be duplication happening. E.g. if you `dvc add data`, then `data.dvc`(tiny yaml metafile) will be stored by git, but the `data` itself will be stored by dvc, so on `git push` only that `data.dvc` will be uploaded, but the `data` itself will stay on your machine.

---

<div class="post-metadata">

### Author: ![jorgeorpinel](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.dvc.org/jorgeorpinel/32/46_2.png) [@jorgeorpinel](https://discuss.dvc.org/u/jorgeorpinel)
#### Post date: [September 19, 2019, 5:56pm UTC](https://discuss.dvc.org/t/how-cache-is-maintained-for-big-data-size-locally/217/4 "2019-09-19T17:56:25Z")

</div>

> [@dashohoxha](#):
>
> Could you please have a look at this tutorial: [https://katacoda.com/dvc](https://katacoda.com/dvc)

p.s. @writetoneeraj the official get started guide is at [Get Started with DVC](https://dvc.org/doc/get-started). Your question has to do with the **Add Files** chapter.

---

<div class="post-metadata">

### Author: ![writetoneeraj](https://avatars.discourse-cdn.com/v4/letter/w/dec6dc/32.png) [@writetoneeraj](https://discuss.dvc.org/u/writetoneeraj)
#### Post date: [May 15, 2020, 6:22am UTC](https://discuss.dvc.org/t/how-cache-is-maintained-for-big-data-size-locally/217/5 "2020-05-15T06:22:30Z")

</div>

@dashohoxha this tutorial is really good.
