# Remote \`borg\` item restoration

**URL:** https://forum.yunohost.org/t/remote-borg-item-restoration/28171
**Category:** Support
**Tags:** ssh, restore-backup, english
**Created:** [January 22, 2024, 7:56am UTC](https://forum.yunohost.org/t/remote-borg-item-restoration/28171 "2024-01-22T07:56:42Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![petesim](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/p/f9ae1b/32.png) [@petesim](https://forum.yunohost.org/u/petesim)
#### Post date: [January 22, 2024, 7:56am UTC](https://forum.yunohost.org/t/remote-borg-item-restoration/28171/1 "2024-01-22T07:56:42Z")

</div>

Hi there!

### My YunoHost server

**Hardware:** VPS bought online  
**YunoHost version:** 11.2.9.1 (stable)  
**I have access to my server :** Through SSH | through the webadmin  
**Are you in a special context or did you perform some particular tweaking on your YunoHost instance ?** : no

### Description of my issue

I didn’t check Nextcloud after update (attempt) and now it replies with an “Internal Server Error”. I guess it happened on 20th of Jan, or a day earlier. After that was noticed I saw I visited _updates_ admin section, it was offering updating. To give it a chance to remediate I ran the thing – no success; then went to SSH to try it there. That attempt showed that there was a warning of not enough memory before updating. So server reboot was conducted and then update ran without a warning before starting, but with an error and the fallback in the end.

```plaintext
Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.

```

Now I want to get a backup from \<[borgbase.com](http://borgbase.com)\> using [https://forum.yunohost.org/t/how-to-properly-backup-and-restore/12583/3](https://forum.yunohost.org/t/how-to-properly-backup-and-restore/12583/3) to guide me. The problem is both commands (`list` and `export-tar`) ends up asking me a password, which I’m sure I do have (though don’t know how to test it). When I feed the password `Remote: Permission denied` is the reply I get; I guess the reason is it actually expects the key (which public part is easy to locate at \<yunohost/admin/#/apps/borg/main\>), but **I couldn’t find the private key which is obviously used when during back-uping.**

Any hints, advice,  
and **path of the key** and how to indicate it in `borg` command  
are very welcome!

Let me mention @ljf especially, as the author of that guide that was near to save me. 🙏

---

<div class="post-metadata">

### Author: ![nicofrand](https://forum.yunohost.org/user_avatar/forum.yunohost.org/nicofrand/32/892_2.png) [@nicofrand](https://forum.yunohost.org/u/nicofrand)
#### Post date: [January 22, 2024, 9:12am UTC](https://forum.yunohost.org/t/remote-borg-item-restoration/28171/2 "2024-01-22T09:12:56Z")

</div>

Hi,

I used something like `BORG_RSH="ssh -i /root/.ssh/id_borg_ed25519 -oStrictHostKeyChecking=yes" borg list` a while ago, I don’t know if that still is correct nor if this is only something for my own need… Might be worth checking it on your side though.

---

<div class="post-metadata">

### Author: ![petesim](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/p/f9ae1b/32.png) [@petesim](https://forum.yunohost.org/u/petesim)
#### Post date: [January 22, 2024, 9:31am UTC](https://forum.yunohost.org/t/remote-borg-item-restoration/28171/3 "2024-01-22T09:31:41Z")

</div>

It went into extracting the `tar` file! 🎉 Thanks a lot for such a swift help!!

---

<div class="post-metadata">

### Author: ![orhtej2](https://forum.yunohost.org/user_avatar/forum.yunohost.org/orhtej2/32/8943_2.png) [@orhtej2](https://forum.yunohost.org/u/orhtej2)
#### Post date: [January 22, 2024, 11:08am UTC](https://forum.yunohost.org/t/remote-borg-item-restoration/28171/4 "2024-01-22T11:08:31Z")

</div>

For reference usage of borg restore is listed in [the documentation](https://yunohost.org/en/backup/borgbackup#restore) and is in line with what @nicofrand offered.

---

<div class="post-metadata">

### Author: ![petesim](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/p/f9ae1b/32.png) [@petesim](https://forum.yunohost.org/u/petesim)
#### Post date: [January 22, 2024, 11:46am UTC](https://forum.yunohost.org/t/remote-borg-item-restoration/28171/5 "2024-01-22T11:46:19Z")

</div>

🤦‍♂️ I was in the previous section looking for upgrade command and still epically missed it. Shame on me!

---

<div class="post-metadata">

### Author: ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)
#### Post date: [February 21, 2024, 11:46am UTC](https://forum.yunohost.org/t/remote-borg-item-restoration/28171/6 "2024-02-21T11:46:49Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
