# How can I get the current version information from my backup?

**URL:** https://meta.discourse.org/t/how-can-i-get-the-current-version-information-from-my-backup/367077
**Category:** Support
**Created:** [May 21, 2025, 3:44pm UTC](https://meta.discourse.org/t/how-can-i-get-the-current-version-information-from-my-backup/367077 "2025-05-21T15:44:44Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [May 22, 2025, 3:23pm UTC](https://meta.discourse.org/t/how-can-i-get-the-current-version-information-from-my-backup/367077/4 "2025-05-22T15:23:18Z")

</div>

> [@Alienazk](#):
>
> if a VPS has been hacked, is it still possible to back up the discourse?

That depends on what state they left it in. You could try to go through the rails console:

```plaintext
cd /var/discourse 
./launcher enter app
discourse backup
cd public/backups/default
scp * user@destination.example.com:

```

Your backup filename has the format `forumname-2025-05-22-151843-v20250521053324.tar.gz`

The long string at the end is the latest migration that has been ran.

To find out which commit it belongs to,

```plaintext
cd /var/www/discourse
git blame db/migrate/20250521053324*

```

You will now see some output and the left column contains the commit hash.  
This is the minimal commit your new forum should be at.

(Sometimes the commit belongs to a plugin, in that case use `locate` to find the plugin, cd into its directory and do the same git blame stanza)

---

_[View the full topic](https://meta.discourse.org/t/how-can-i-get-the-current-version-information-from-my-backup/367077)._
