Giter VIP home page Giter VIP logo

Comments (7)

Napator avatar Napator commented on August 17, 2024

Tested manual local backup of wireguard successfully.

Tested also backup to borgbase with "exclude:wireguard" successfully.

It seems only the backup with of wireguard with borg is not working.

Thank you for your help.

from borg_ynh.

jorge-vitrubio avatar jorge-vitrubio commented on August 17, 2024

this issue is related to this one YunoHost-Apps/wireguard_ynh#70

cat /var/log/yunohost/categories/operation/20230627-000322-backup_create.yml
args:
  apps:
  - wireguard
  description: null
  dry_run: false
  methods:
  - borg_app
  name: auto_wireguard
  output_directory: null
  system: null
ended_at: 2023-06-27 00:03:25.577427
error: '''/etc/wireguard/wg0.conf'' and ''/home/yunohost.backup/tmp/auto_wireguard/apps/wireguard/backup/etc/wireguard/wg0.conf''
  are the same file'
interface: cli
operation: backup_create
parent: null
related_to:
- - app
  - wireguard
started_at: 2023-06-27 00:03:22.479313
success: false
yunohost_version: 11.1.21.4

but some of us didn't manage to use the "exclude:wireguard" so the yunohost borg keep trhowing errors every day

for me the solution is to use the exact value of the apps to backup, for example:

yunohost app setting borg apps -v "etherpad_mypads,nextcloud,onlyoffice"

from borg_ynh.

CodeShakingSheep avatar CodeShakingSheep commented on August 17, 2024

I can see that YunoHost-Apps/wireguard_ynh#70 in Wireguard repository is closed. However, the issue still persists for me. Anyone else?

from borg_ynh.

jorge-vitrubio avatar jorge-vitrubio commented on August 17, 2024

I can see that YunoHost-Apps/wireguard_ynh#70 in Wireguard repository is closed. However, the issue still persists for me. Anyone else?

have you tried this? -> YunoHost-Apps/wireguard_ynh#70 (comment)

from borg_ynh.

CodeShakingSheep avatar CodeShakingSheep commented on August 17, 2024

I can see that YunoHost-Apps/wireguard_ynh#70 in Wireguard repository is closed. However, the issue still persists for me. Anyone else?

have you tried this? -> YunoHost-Apps/wireguard_ynh#70 (comment)

Yes, I commented this line in Wireguard's backup script yesterday but the backup still failed last night.

from borg_ynh.

jorge-vitrubio avatar jorge-vitrubio commented on August 17, 2024

I can see that YunoHost-Apps/wireguard_ynh#70 in Wireguard repository is closed. However, the issue still persists for me. Anyone else?

have you tried this? -> YunoHost-Apps/wireguard_ynh#70 (comment)

Yes, I commented this line in Wireguard's backup script yesterday but the backup still failed last night.

you have to apply changes to cron by restartin ther service or even restarting the server will do

from borg_ynh.

CodeShakingSheep avatar CodeShakingSheep commented on August 17, 2024

Yesterday I restarted my whole server, but the backup is still not successful. I commented this line in the backup script as suggested in the solution:

# Backing up specific config file, in case of it is not in /etc/wireguard
#ynh_backup --src_path="$(jq -r 'select(.config_file_path | startswith("/etc/wireguard/") | not) | .config_file_path' $install_dir/db/server/global_settings.json)" --not_mandatory

Any other ideas?

Also, if I understand correctly, instead of restarting the whole server I would need to restart wg-quick@wg0 service, right?

from borg_ynh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.