# Borg Backup App usage

**URL:** https://forum.yunohost.org/t/borg-backup-app-usage/14376
**Category:** Support
**Tags:** english
**Created:** [February 3, 2021, 10:50am UTC](https://forum.yunohost.org/t/borg-backup-app-usage/14376 "2021-02-03T10:50:31Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Wh1sper](https://forum.yunohost.org/user_avatar/forum.yunohost.org/wh1sper/32/4000_2.png) [@Wh1sper](https://forum.yunohost.org/u/Wh1sper)
#### Post date: [February 3, 2021, 10:50am UTC](https://forum.yunohost.org/t/borg-backup-app-usage/14376/1 "2021-02-03T10:50:31Z")

</div>

First: I’m deeply impressed from this project, **very exciting!**  
I do have a question about borg backup

### My YunoHost server

**Hardware:** Old laptop at home  
**YunoHost version:** 4.1.7  
**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 installed the borg backup app.  
I do own a rootserver @hetzner, too.  
This Server does borg backups to a hetzner storage server with enough space for additional usage.  
So I’m trying to backup my yunohost as well.

I wonder how is borg going to be started?  
Via cron it is not, I guess?

---

<div class="post-metadata">

### Author: ![ljf](https://forum.yunohost.org/user_avatar/forum.yunohost.org/ljf/32/58_2.png) [@ljf](https://forum.yunohost.org/u/ljf)
#### Post date: [February 3, 2021, 10:58am UTC](https://forum.yunohost.org/t/borg-backup-app-usage/14376/2 "2021-02-03T10:58:42Z")

</div>

It’s a systemd timer that run the borg service

---

<div class="post-metadata">

### Author: ![Wh1sper](https://forum.yunohost.org/user_avatar/forum.yunohost.org/wh1sper/32/4000_2.png) [@Wh1sper](https://forum.yunohost.org/u/Wh1sper)
#### Post date: [February 3, 2021, 11:01am UTC](https://forum.yunohost.org/t/borg-backup-app-usage/14376/3 "2021-02-03T11:01:32Z")

</div>

Ok, an old man should slowly think in modern systemd ways 😉  
Thank you!

---

<div class="post-metadata">

### Author: ![Wh1sper](https://forum.yunohost.org/user_avatar/forum.yunohost.org/wh1sper/32/4000_2.png) [@Wh1sper](https://forum.yunohost.org/u/Wh1sper)
#### Post date: [February 4, 2021, 10:02am UTC](https://forum.yunohost.org/t/borg-backup-app-usage/14376/4 "2021-02-04T10:02:03Z")

</div>

As far as I am see the borg app lacks a descritpion how to set up the service correctly.  
A new ssh key was generated under /root/.ssh/id\_borg\_ed25519  
But one should inform the admin to put this /root/.ssh/id\_borg\_ed25519.pub  
at the end of the authorized\_key file on the borg archive server.  
one could test at the commandline on the yunohost like this  
`sftp -P 23 -i .ssh/id_borg_ed25519 uabc@uabc.your-storagebox.de:yuno`  
It should work without password  
After that an execution of backup-with-borg should work.  
Isit ok, so far?

---

<div class="post-metadata">

### Author: ![arkadi](https://forum.yunohost.org/user_avatar/forum.yunohost.org/arkadi/32/5350_2.png) [@arkadi](https://forum.yunohost.org/u/arkadi)
#### Post date: [February 17, 2021, 7:29am UTC](https://forum.yunohost.org/t/borg-backup-app-usage/14376/5 "2021-02-17T07:29:17Z")

</div>

Before you get setup with Borg, I would recommend looking into Restic.

I used to use Borg, but it’s so complicated imho. Restic has much simpler commands and is new, but under very active development.

> **[restic/restic](https://github.com/restic/restic)**
>
> Fast, secure, efficient backup program. Contribute to restic/restic development by creating an account on GitHub.

---

<div class="post-metadata">

### Author: ![Wh1sper](https://forum.yunohost.org/user_avatar/forum.yunohost.org/wh1sper/32/4000_2.png) [@Wh1sper](https://forum.yunohost.org/u/Wh1sper)
#### Post date: [February 17, 2021, 9:20am UTC](https://forum.yunohost.org/t/borg-backup-app-usage/14376/6 "2021-02-17T09:20:20Z")

</div>

Ohh, thanks for your tip.  
Restic is definitely worth a look!  
However, it’s apparently still at an early stage, so I don’t know if it should be relied upon in a production environment. (edit: just found the self-update feature, cool. )

I have had good experiences with Borg Backup so far, my root server is backed up with it and I appreciate the quick and easy restore. I have needed this a few times in the past 2 years.  
Again, thanks for your advice, I’ll take a closer look and possibly use it in parallel with Borg.

---

<div class="post-metadata">

### Author: ![ljf](https://forum.yunohost.org/user_avatar/forum.yunohost.org/ljf/32/58_2.png) [@ljf](https://forum.yunohost.org/u/ljf)
#### Post date: [February 17, 2021, 11:31am UTC](https://forum.yunohost.org/t/borg-backup-app-usage/14376/7 "2021-02-17T11:31:46Z")

</div>

The process to install borg and borgserver together is describe here

> **[YunoHost-Apps/borg\_ynh](https://github.com/YunoHost-Apps/borg_ynh)**
>
> An experimental Borg implementation for YunoHost. Contribute to YunoHost-Apps/borg\_ynh development by creating an account on GitHub.

---

<div class="post-metadata">

### Author: ![Wh1sper](https://forum.yunohost.org/user_avatar/forum.yunohost.org/wh1sper/32/4000_2.png) [@Wh1sper](https://forum.yunohost.org/u/Wh1sper)
#### Post date: [February 17, 2021, 12:57pm UTC](https://forum.yunohost.org/t/borg-backup-app-usage/14376/8 "2021-02-17T12:57:03Z")

</div>

To be clear. For me it works perfectly with borg  
My second last post was only to impress that the documentation could be more detailed how to setup it. That was my intention

---

<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: [March 4, 2021, 12:57pm UTC](https://forum.yunohost.org/t/borg-backup-app-usage/14376/9 "2021-03-04T12:57:40Z")

</div>

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