Sauvegarde Yunohost avec restic

Ok, donc ce qui ne fonctionnait pas avant fonctionne maintenant visiblement, dis-moi exactement où ça coince alors?

Quand je lance le test de conf pour vérifier que tout est ok, (car je n’ai pas de sauvegarde sur mon NAS)
j’ai ça

admin@serveur:/$ sudo restic -r sftp:82.XX.XX.XX:g*****.fr/auto_conf snapshots
root@82.XX.XX.XX's password:
subprocess ssh: Connection closed by 82.XX.XX.XX port 22
Fatal: unable to open repo at sftp:82.XX.XX.XX:g*****.fr/auto_conf: unable to start the sftp session, error: EOF

Soit j’inverse les serveurs mais comme je l’ai compris
Serveur A = YNH = g*****.fr
Serveur B = NAS = 82.XX.XX.XX

If you want to be sure, you can test it by running on server A:

systemctl start restic.service

Next you can verify the backup contents by running on server A

restic -r sftp:serverb.domain.tld:servera.domain.tld/auto_conf snapshots

Lovin’ it!
Thank you for this tutorial, much appreciated!

Salut,
Est-ce que quelqu’un serait motivé pour bosser un peu sur ce paquet ? En gros il faudrait prendre exemple sur le paquet borg qui a été pas mal mis à jour depuis, pour répliquer les améliorations sur le paquet Restic.
Restic est une app vraiment intéressante, je m’en sers sur 2 serveurs pour faire des backups avec un simple accès SFTP. Ce qui me manque le plus, c’est le fait que les mails à chaque backup affichent “Success” même quand le backup n’a pas marché.

Hi, I need help to set up restic backup on local usb

restic service install without issues both from CLI and webinterface (tried both without success later on setup)

Install log file: https://paste.yunohost.org/raw/baheqaxike

then I’ve tried to copy ssh-publickey (as in log file) to /home/user(which? restic?/.ssh/authorized_keys folder, but there is no /home for the newly created user, but a new “restic” home folder.

TL;DR

I end with a ssh (public key) error so no access to even log in the ssh server.

Please would you review/rewrite your guide? (I come here from github link). Thank you.


install script creates keys and user but I think there’s some issues because I can not ssh access with these new credentials.
You should now allow the following public key for user **backuper** on server localhost

ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAA___public_key___bBapS2vnj5o7s8w5cL6B root@maindomain.tld

“bakcuper” is the new user created when prompted by installer, there’s is no “/home/backuper/” but “/home/restic/” instead, so I copied public key to this user /home (>> /home/vagrant/.ssh/autorized-keys in your howto)

so is created backuper user using restic user /home?

systemctl start restic

no sftp access, log (from one of the apps) https://paste.yunohost.org/raw/odikuluhel

on a side note, because I did not reach yet to that point, should my mounted usb be “owned” by “backuper” or “restic”?

Qu’est-ce qu’il faudrait pour faciliter l’intégration ?