OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • 24.1 Legacy Series »
  • WebDAV Config Backup Plugin & SFTP Config Backup Plugin
« previous next »
  • Print
Pages: [1]

Author Topic: WebDAV Config Backup Plugin & SFTP Config Backup Plugin  (Read 747 times)

mtltt

  • Newbie
  • *
  • Posts: 15
  • Karma: 2
    • View Profile
WebDAV Config Backup Plugin & SFTP Config Backup Plugin
« on: June 16, 2024, 11:32:02 am »
I did a rewrite of the Nextcloud backup plugin to support any WebDAV server. For anyone interested, here is the code:
https://gist.github.com/cretl/c0cf801b45020df77e100a6a3e9d447c

This plugin is tested with SFTPGo WebDAV server and Hetzner Storage Box.
Works for me :)

I also created a SFTP Backup Plugin:
https://gist.github.com/cretl/9399900b4e623de4fcaab76592508ed0
« Last Edit: June 16, 2024, 03:00:44 pm by mtltt »
Logged

juasiepo

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: WebDAV Config Backup Plugin & SFTP Config Backup Plugin
« Reply #1 on: June 17, 2024, 08:13:55 am »
Hi,

Can you share a link about how to install it? As I cannot see it on the plugins installation menu.

Thanks for your time

Best regards
Logged

mtltt

  • Newbie
  • *
  • Posts: 15
  • Karma: 2
    • View Profile
Re: WebDAV Config Backup Plugin & SFTP Config Backup Plugin
« Reply #2 on: June 17, 2024, 12:53:42 pm »
Since these aren't official plugins, you have to manually create the following files with the source code provided on the linked GitHub Gist:

WebDAV (https://gist.github.com/cretl/c0cf801b45020df77e100a6a3e9d447c):
/usr/local/opnsense/mvc/app/library/OPNsense/Backup/WebDAV.php
/usr/local/opnsense/mvc/app/models/OPNsense/Backup/WebDAVSettings.php
/usr/local/opnsense/mvc/app/models/OPNsense/Backup/WebDAVSettings.xml

SFTP (https://gist.github.com/cretl/9399900b4e623de4fcaab76592508ed0):
/usr/local/opnsense/mvc/app/library/OPNsense/Backup/SFTP.php
/usr/local/opnsense/mvc/app/models/OPNsense/Backup/SFTPSettings.php
/usr/local/opnsense/mvc/app/models/OPNsense/Backup/SFTPSettings.xml

After this, the backup can be configured under System -> Configuration -> Backups just like the Nextcloud Plugin.
Logged

juasiepo

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: WebDAV Config Backup Plugin & SFTP Config Backup Plugin
« Reply #3 on: June 20, 2024, 04:40:30 pm »
Thanks for your time  :)
Logged

basnappl

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Re: WebDAV Config Backup Plugin & SFTP Config Backup Plugin
« Reply #4 on: December 02, 2024, 01:37:17 pm »
Thank you so much for this!  I hope this can become an official plugin.  It is crazy to require an entire Nextcloud instance just to enable backup.  This code is tested and working with https://hub.docker.com/r/apachewebdav/apachewebdav.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • 24.1 Legacy Series »
  • WebDAV Config Backup Plugin & SFTP Config Backup Plugin
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2