# How to automate DVC push

**URL:** <https://discuss.dvc.org/t/how-to-automate-dvc-push/649>\
**Category:** Questions\
**Created:** [February 1, 2021, 1:22pm UTC](https://discuss.dvc.org/t/how-to-automate-dvc-push/649 "2021-02-01T13:22:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shyju](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.dvc.org/shyju/32/93_2.png) [@Shyju](https://discuss.dvc.org/u/Shyju)\
**Post date:** [February 1, 2021, 1:22pm UTC](https://discuss.dvc.org/t/how-to-automate-dvc-push/649/1 "2021-02-01T13:22:46Z")

</div>

Hello

I have started using DVC for version control in one of my projects and it’s awesome.

Currently, the model training job is executed from an amazon ec2 machine and the output is downloaded to my local machine which is pushed to the remote storage using the DVC push command.

My doubt is, is it possible to programmatically push the model into the remote DVC storage (Amazon S3)? I couldn’t find any helping articles online. Could you please suggest the right way of doing the same?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![isidentical](https://avatars.discourse-cdn.com/v4/letter/i/c68b51/32.png) [@isidentical](https://discuss.dvc.org/u/isidentical)\
**Post date:** [February 1, 2021, 1:31pm UTC](https://discuss.dvc.org/t/how-to-automate-dvc-push/649/2 "2021-02-01T13:31:47Z")

</div>

You can automate this process with git hooks, provided by `dvc install`. See [https://dvc.org/doc/command-reference/install](https://dvc.org/doc/command-reference/install)

So when you install this pre-push hook, it will run `dvc push` before every `git push`.

---

<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:** [February 1, 2021, 7:59pm UTC](https://discuss.dvc.org/t/how-to-automate-dvc-push/649/3 "2021-02-01T19:59:27Z")

</div>

> Note: alternative discussion in [https://groups.google.com/u/1/a/iterative.ai/g/support/c/Bk43iyFOq4M/m/Y290XdCMDgAJ](https://groups.google.com/u/1/a/iterative.ai/g/support/c/Bk43iyFOq4M/m/Y290XdCMDgAJ) (in case needed). Cheers

---

<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:** [February 2, 2021, 7:25pm UTC](https://discuss.dvc.org/t/how-to-automate-dvc-push/649/4 "2021-02-02T19:25:50Z")

</div>

For the record, it looks like the `dvc import-url --to-remote` may satisfy this need. (WIP, currently in [https://github.com/iterative/dvc/pull/5198](https://github.com/iterative/dvc/pull/5198)).
