Update Borg and its config?

,

Hi,

I updated the Borg app (I am using it to backup to BorgBase). Do I have to redo the config (what to backup, etc.) after having updated the app?

Thank you.

No you don’t (however a hotfix has been made yesterday)

Bon, depuis la màj Borg ne sauvegarde plus.

Je souhaite reconfigurer Borg, je connais la commande pour exclure des apps, par exemple : borg apps -v "exclude:nextcloud".

Mais quelle serait la commande pour par exemple spécifier les apps à inclure et tous les jours à 2 heures du matin ?

borg apps -v "include:nextcloud,lutim"

??

Merci

Well, since the update Borg is no longer backing.

I want to reconfigure Borg, I know the command to exclude apps, for example: borg apps -v" exclude: nextcloud ".

But what would be the command to specify the apps to be included and save them every day at 2 o’clock in the morning?

Borg Apps -v" include: nextCloud,lutim"

??

Thank you

yunohost app settings borg apps -v "nextcloud,lutim"
yunohost app settings borg on_calendar -v "*-*-* 2:00:00"

You also need to change the timer with the new oncalendar value:

nano /etc/systemd/system/borg.timer

And next :

systemctl daemon-reload

However, if borg doesn’t work, we probably should search why before to change all the things… How do you know the backup doesn’t work anymore ?

1 Like

Thank you for your help.

Because I didn’t receive any confirmation e-mails of successful or failed backups since I updated the Borg app on my Pi/Yunohost.

A lot of users have asked to avoid to receive a lot of email. They just want failed emails.
If (like me) you prefer to receive succeed and failed, you should set this settings

yunohost app settings set borg mailalert -v 'always'

If I type your command it returns :

sudo yunohost app settings set borg mailalert -v ‘always’
usage: yunohost app
{catalog,search,manifest,fetchlist,list,info,map,install,remove,upgrade,change-url,setting,register-url,makedefault,ssowatconf,change-label,addaccess,removeaccess,clearaccess,action,config}

[-h]
yunohost app: error: argument {catalog,search,manifest,fetchlist,list,info,map,install,remove,upgrade,change-url,setting,register-url,makedefault,ssowatconf,change-label,addaccess,removeaccess,clearaccess,action,config}: invalid choice: ‘settings’ (choose from ‘catalog’, ‘search’, ‘manifest’, ‘fetchlist’, ‘list’, ‘info’, ‘map’, ‘install’, ‘remove’, ‘upgrade’, ‘change-url’, ‘setting’, ‘register-url’, ‘makedefault’, ‘ssowatconf’, ‘change-label’

That’s because there is a small error in my command. So the command line display you a small help to see which subcommands are available. I let you search in it to find the good one)

The answer
yunohost app setting borg mailalert -v ‘always’

:slight_smile: Thank you!

Mailalert seems to not be recognized:

sudo yunohost app setting set borg mailalert -v ‘always’
usage: yunohost {app} …
[-h] [–output-as {json,plain,none}] [–debug] [–quiet]
[–timeout ==SUPPRESS==] [-v]
yunohost: error: unrecognized arguments: mailalert

Sorry i added set word… The good command

yunohost app setting borg mailalert -v always

If you want to know how to use a command, you can use --help

yunohost app setting --help
1 Like

Thank you. Now I wait for tonight to see if something happens (My Borg set up before updating the app was to backup at night) and if I receive e-mails.

Well, I had set borg to backup once a week and it does that but I get an email everyday with the subject “[YNH] Backup missing : borgladouce” saying :

No file has been backuped in /home/borgladouce since 1 days

Is it possible not to receive this email but instead to receive once week, just after the weekly backup an email telling me if the backup has been successful or not?

yunohost app setting borgserver alert_delay -v 7
2 Likes

So, this morning I received an e-mail:

[borg] Backup succeed from xxxx.org onto ssh://xxxxx@xxxxx.repo.borgbase.com:22/~/repo

Everything is fine then, thank you for your help!

Hi,

So, after a few days. Borg seems to be crashing when the automated backup is run, here is the mail I receive (I just keep the interesting parts):

The backup miserably failed to backup roundcube application.

Failed to format translated string ‘backup_applying_method_custom’: ‘Calling the custom backup method ‘{method}’…’ with arguments ‘()’ and '{}, raising error: KeyError(‘method’) (don’t panic this is just a warning) Failed to format translatable string ‘backup_applying_method_custom’: ‘Calling the custom backup method ‘{method}’…’ with arguments ‘()’ and ‘{}’, raising error: KeyError(‘method’) (don’t panic this is just a warning) A repository already exists at ssh://ivxtoba5@ivxtoba5.repo.borgbase.com:22/~/repo. Failed to format translated string ‘backup_method_custom_finished’: ‘Custom backup method ‘{method}’ finished’ with arguments ‘()’ and '{}, raising error: KeyError(‘method’) (don’t panic this is just a warning) Failed to format translatable string ‘backup_method_custom_finished’: ‘Custom backup method ‘{method}’ finished’ with arguments ‘()’ and ‘{}’, raising error: KeyError(‘method’) (don’t panic this is just a warning) Failed to format translated string ‘backup_applying_method_custom’: ‘Calling the custom backup method ‘{method}’…’ with arguments ‘()’ and '{}, raising error: KeyError(‘method’) (don’t panic this is just a warning) Failed to format translatable string ‘backup_applying_method_custom’: ‘Calling the custom backup method ‘{method}’…’ with arguments ‘()’ and ‘{}’, raising error: KeyError(‘method’) (don’t panic this is just a warning) A repository already exists at ssh://ivxtoba5@ivxtoba5.repo.borgbase.com:22/~/repo. Failed to format translated string ‘backup_method_custom_finished’: ‘Custom backup method ‘{method}’ finished’ with arguments ‘()’ and '{}, raising error: KeyError(‘method’) (don’t panic this is just a warning) Failed to format translatable string ‘backup_method_custom_finished’: ‘Custom backup method ‘{method}’ finished’ with arguments ‘()’ and ‘{}’, raising error: KeyError(‘method’) (don’t panic this is just a warning) Failed to format translated string ‘backup_applying_method_custom’: ‘Calling the custom backup method ‘{method}’…’ with arguments ‘()’ and '{}, raising error: KeyError(‘method’) (don’t panic this is just a warning) Failed to format translatable string ‘backup_applying_method_custom’: ‘Calling the custom backup method ‘{method}’…’ with arguments ‘()’ and ‘{}’, raising error: KeyError(‘method’) (don’t panic this is just a warning) A repository already exists at ssh://ivxtoba5@ivxtoba5.repo.borgbase.com:22/~/repo. Failed to format translated string ‘backup_method_custom_finished’: ‘Custom backup method ‘{method}’ finished’ with arguments ‘()’ and '{}, raising error: KeyError(‘method’) (don’t panic this is just a warning) Failed to format translatable string ‘backup_method_custom_finished’: ‘Custom backup method ‘{method}’ finished’ with arguments ‘()’ and ‘{}’, raising error: KeyError(‘method’) (don’t panic this is just a warning) Failed to format translated string ‘backup_applying_method_custom’: ‘Calling the custom backup method ‘{method}’…’ with arguments ‘()’ and '{}, raising error: KeyError(‘method’) (don’t panic this is just a warning) Failed to format translatable string ‘backup_applying_method_custom’: ‘Calling the custom backup method ‘{method}’…’ with arguments ‘()’ and ‘{}’, raising error: KeyError(‘method’) (don’t panic this is just a warning) A repository already exists at ssh://ivxtoba5@ivxtoba5.repo.borgbase.com:22/~/repo. Failed to format translated string ‘backup_method_custom_finished’: ‘Custom backup method ‘{method}’ finished’ with arguments ‘()’ and '{}, raising error: KeyError(‘method’) (don’t panic this is just a warning) Failed to format translatable string ‘backup_method_custom_finished’: ‘Custom backup method ‘{method}’ finished’ with arguments ‘()’ and ‘{}’, raising error: KeyError(‘method’) (don’t panic this is just a warning) Failed to format translated string ‘backup_applying_method_custom’: ‘Calling the custom backup method ‘{method}’…’ with arguments ‘()’ and '{}, raising error: KeyError(‘method’) (don’t panic this is just a warning) Failed to format translatable string ‘backup_applying_method_custom’: ‘Calling the custom backup method ‘{method}’…’ with arguments ‘()’ and ‘{}’, raising error: KeyError(‘method’) (don’t panic this is just a warning) A repository already exists at ssh://ivxtoba5@ivxtoba5.repo.borgbase.com:22/~/repo. Failed to format translated string ‘backup_method_custom_finished’: ‘Custom backup method ‘{method}’ finished’ with arguments ‘()’ and '{}, raising error: KeyError(‘method’) (don’t panic this is just a warning) Failed to format translatable string ‘backup_method_custom_finished’: ‘Custom backup method ‘{method}’ finished’ with arguments ‘()’ and ‘{}’, raising error: KeyError(‘method’) (don’t panic this is just a warning) Failed to format translated string ‘backup_applying_method_custom’: ‘Calling the custom backup method ‘{method}’…’ with arguments ‘()’ and '{}, raising error: KeyError(‘method’) (don’t panic this is just a warning) Failed to format translatable string ‘backup_applying_method_custom’: ‘Calling the custom backup method ‘{method}’…’ with arguments ‘()’ and ‘{}’, raising error: KeyError(‘method’) (don’t panic this is just a warning) A repository already exists at ssh://ivxtoba5@ivxtoba5.repo.borgbase.com:22/~/repo. Failed to format translated string ‘backup_method_custom_finished’: ‘Custom backup method ‘{method}’ finished’ with arguments ‘()’ and '{}, raising error: KeyError(‘method’) (don’t panic this is just a warning) Failed to format translatable string ‘backup_method_custom_finished’: ‘Custom backup method ‘{method}’ finished’ with arguments ‘()’ and ‘{}’, raising error: KeyError(‘method’) (don’t panic this is just a warning) Failed to format translated string ‘backup_applying_method_custom’: ‘Calling the custom backup method ‘{method}’…’ with arguments ‘()’ and '{}, raising error: KeyError(‘method’) (don’t panic this is just a warning) Failed to format translatable string ‘backup_applying_method_custom’: ‘Calling the custom backup method ‘{method}’…’ with arguments ‘()’ and ‘{}’, raising error: KeyError(‘method’) (don’t panic this is just a warning) A repository already exists at ssh://ivxtoba5@ivxtoba5.repo.borgbase.com:22/~/repo. Failed to format translated string ‘backup_method_custom_finished’: ‘Custom backup method ‘{method}’ finished’ with arguments ‘()’ and '{}, raising error: KeyError(‘method’) (don’t panic this is just a warning) Failed to format translatable string ‘backup_method_custom_finished’: ‘Custom backup method ‘{method}’ finished’ with arguments ‘()’ and ‘{}’, raising error: KeyError(‘method’) (don’t panic this is just a warning) /usr/share/yunohost/helpers.d/php: line 559: YNH_DEFAULT_COMPOSER_VERSION: readonly variable Failed to format translated string ‘backup_applying_method_custom’: ‘Calling the custom backup method ‘{method}’…’ with arguments ‘()’ and '{}, raising error: KeyError(‘method’) (don’t panic this is just a warning) Failed to format translatable string ‘backup_applying_method_custom’: ‘Calling the custom backup method ‘{method}’…’ with arguments ‘()’ and ‘{}’, raising error: KeyError(‘method’) (don’t panic this is just a warning) A repository already exists at ssh://ivxtoba5@ivxtoba5.repo.borgbase.com:22/~/repo. Could not run script: /etc/yunohost/hooks.d/backup_method/05-borg_app Custom backup method could not get past the ‘backup’ step Failed to format translated string ‘backup_applying_method_custom’: ‘Calling the custom backup method ‘{method}’…’ with arguments ‘()’ and '{}, raising error: KeyError(‘method’) (don’t panic this is just a warning) Failed to format translatable string ‘backup_applying_method_custom’: ‘Calling the custom backup method ‘{method}’…’ with arguments ‘()’ and ‘{}’, raising error: KeyError(‘method’) (don’t panic this is just a warning) Remote: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Remote: @ WARNING: POSSIBLE DNS SPOOFING DETECTED! @ Remote: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Remote: The RSA host key for ivxtoba5.repo.borgbase.com has changed, Remote: and the key for the corresponding IP address 34.206.39.153 Remote: is unknown. This could either mean that Remote: DNS SPOOFING is happening or the IP address for the host Remote: and its host key have changed at the same time. Remote: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Remote: @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ Remote: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Remote: IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Remote: Someone could be eavesdropping on you right now (man-in-the-middle attack)! Remote: It is also possible that a host key has just been changed. Remote: The fingerprint for the RSA key sent by the remote host is Remote: SHA256:Dx17zK5/Ev6jQQTc2rRV6uQ7us8tQ529RII2HRxRENk. Remote: Please contact your system administrator. Remote: Add correct host key in /root/.ssh/known_hosts to get rid of this message. Remote: Offending ECDSA key in /root/.ssh/known_hosts:3 Remote: remove with: Remote: ssh-keygen -f “/root/.ssh/known_hosts” -R “ivxtoba5.repo.borgbase.com” Remote: Password authentication is disabled to avoid man-in-the-middle attacks. Remote: Keyboard-interactive authentication is disabled to avoid man-in-the-middle attacks. Remote: ivxtoba5@ivxtoba5.repo.borgbase.com: Permission denied (publickey,password). Connection closed by remote host. Is borg working on the server? Failed to format translated string ‘backup_method_custom_finished’: ‘Custom backup method ‘{method}’ finished’ with arguments ‘()’ and '{}, raising error: KeyError(‘method’) (don’t panic this is just a warning) Failed to format translatable string ‘backup_method_custom_finished’: ‘Custom backup method ‘{method}’ finished’ with arguments ‘()’ and ‘{}’, raising error: KeyError(‘method’) (don’t panic this is just a warning) Failed to format translated string ‘backup_applying_method_custom’: ‘Calling the custom backup method ‘{method}’…’ with arguments ‘()’ and '{}, raising error: KeyError(‘method’) (don’t panic this is just a warning) Failed to format translatable string ‘backup_applying_method_custom’: ‘Calling the custom backup method ‘{method}’…’ with arguments ‘()’ and ‘{}’, raising error: KeyError(‘method’) (don’t panic this is just a warning) A repository already exists at ssh://ivxtoba5@ivxtoba5.repo.borgbase.com:22/~/repo. Failed to format translated string ‘backup_method_custom_finished’: ‘Custom backup method ‘{method}’ finished’ with arguments ‘()’ and '{}, raising error: KeyError(‘method’) (don’t panic this is just a warning) Failed to format translatable string ‘backup_method_custom_finished’: ‘Custom backup method ‘{method}’ finished’ with arguments ‘()’ and ‘{}’, raising error: KeyError(‘method’) (don’t panic this is just a warning) Failed to format translated string ‘backup_applying_method_custom’: ‘Calling the custom backup method ‘{method}’…’ with arguments ‘()’ and '{}, raising error: KeyError(‘method’) (don’t panic this is just a warning) Failed to format translatable string ‘backup_applying_method_custom’: ‘Calling the custom backup method ‘{method}’…’ with arguments ‘()’ and ‘{}’, raising error: KeyError(‘method’) (don’t panic this is just a warning) A repository already exists at ssh://ivxtoba5@ivxtoba5.repo.borgbase.com:22/~/repo. Failed to format translated string ‘backup_method_custom_finished’: ‘Custom backup method ‘{method}’ finished’ with arguments ‘()’ and '{}, raising error: KeyError(‘method’) (don’t panic this is just a warning) Failed to format translatable string ‘backup_method_custom_finished’: ‘Custom backup method ‘{method}’ finished’ with arguments ‘()’ and ‘{}’, raising error: KeyError(‘method’) (don’t panic this is just a warning) Failed to format translated string ‘backup_applying_method_custom’: ‘Calling the custom backup method ‘{method}’…’ with arguments ‘()’ and '{}, raising error: KeyError(‘method’) (don’t panic this is just a warning) Failed to format translatable string ‘backup_applying_method_custom’: ‘Calling the custom backup method ‘{method}’…’ with arguments ‘()’ and ‘{}’, raising error: KeyError(‘method’) (don’t panic this is just a warning) A repository already exists at ssh://ivxtoba5@ivxtoba5.repo.borgbase.com:22/~/repo. Failed to format translated string ‘backup_method_custom_finished’: ‘Custom backup method ‘{method}’ finished’ with arguments ‘()’ and '{}, raising error: KeyError(‘method’) (don’t panic this is just a warning) Failed to format translatable string ‘backup_method_custom_finished’: ‘Custom backup method ‘{method}’ finished’ with arguments ‘()’ and ‘{}’, raising error: KeyError(‘method’) (don’t panic this is just a warning) Failed to format translated string ‘backup_applying_method_custom’: ‘Calling the custom backup method ‘{method}’…’ with arguments ‘()’ and '{}, raising error: KeyError(‘method’) (don’t panic this is just a warning) Failed to format translatable string ‘backup_applying_method_custom’: ‘Calling the custom backup method ‘{method}’…’ with arguments ‘()’ and ‘{}’, raising error: KeyError(‘method’) (don’t panic this is just a warning) A repository already exists at ssh://ivxtoba5@ivxtoba5.repo.borgbase.com:22/~/repo. Failed to format translated string ‘backup_method_custom_finished’: ‘Custom backup method ‘{method}’ finished’ with arguments ‘()’ and '{}, raising error: KeyError(‘method’) (don’t panic this is just a warning) Failed to format translatable string ‘backup_method_custom_finished’: ‘Custom backup method ‘{method}’ finished’ with arguments ‘()’ and ‘{}’, raising error: KeyError(‘method’) (don’t panic this is just a warning)

Then, I have to restart the borg service, it backups successfully at borg service restart, I receive a successful backup mail, but then again, at 2 am (automated backup) the backup fails again…and so on.

Hi @ljf,

So, after a few days, automated backups have been working fine, thank you for your help.

I can confirm that it works as I wanted now with the combination of

yunohost app setting borgserver alert_delay -v 7

on the borg server and

yunohost app setting borg mailalert -v always

on borg

Thank you so much @ljf