# How to upgrade if \`/var/discourse\` has only \`shared\` and is not git repo

**URL:** <https://meta.discourse.org/t/how-to-upgrade-if-var-discourse-has-only-shared-and-is-not-git-repo/157982>\
**Category:** Product Support\
**Created:** [16 ביולי,‏ 2020,‏ 9:50pm UTC](https://meta.discourse.org/t/how-to-upgrade-if-var-discourse-has-only-shared-and-is-not-git-repo/157982 "2020-07-16T21:50:41Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [16 ביולי,‏ 2020,‏ 11:43pm UTC](https://meta.discourse.org/t/how-to-upgrade-if-var-discourse-has-only-shared-and-is-not-git-repo/157982/4 "2020-07-16T23:43:00Z")

</div>

A new VM means a new virtual server, assuming your instance isn’t on dedicated hardware.

If you have Discourse running but /var/discourse is empty it’s either a very very old installation or an unsupported package.

Either way, you should create a backup, spin up a new virtual server, follow the standard installation guidelines and then restore from backup.

---

_[View the full topic](https://meta.discourse.org/t/how-to-upgrade-if-var-discourse-has-only-shared-and-is-not-git-repo/157982)._
