mirror of
https://github.com/opnsense/plugins.git
synced 2026-02-03 20:40:37 -05:00
sysutils/nextcloud-backup: new version, style and unmaintaned marker
While the plugin just received a partial rewrite it hasn't gotten any TLC in years though.
This commit is contained in:
parent
3bccb618b4
commit
ae2d51e036
5 changed files with 20 additions and 12 deletions
|
|
@ -112,7 +112,7 @@ sysutils/hw-probe -- Collect hardware diagnostics
|
|||
sysutils/lcdproc-sdeclcd -- LCDProc for SDEC LCD devices (not maintained)
|
||||
sysutils/mail-backup -- Send configuration file backup by e-mail
|
||||
sysutils/munin-node -- Munin monitoring agent
|
||||
sysutils/nextcloud-backup -- Track config changes using NextCloud
|
||||
sysutils/nextcloud-backup -- Track config changes using NextCloud (not maintained)
|
||||
sysutils/node_exporter -- Prometheus exporter for machine metrics
|
||||
sysutils/nut -- Network UPS Tools
|
||||
sysutils/puppet-agent -- Manage Puppet Agent
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
PLUGIN_NAME= nextcloud-backup
|
||||
PLUGIN_VERSION= 1.0
|
||||
PLUGIN_REVISION= 1
|
||||
PLUGIN_VERSION= 1.1
|
||||
PLUGIN_COMMENT= Track config changes using NextCloud
|
||||
PLUGIN_MAINTAINER= franz.fabian.94@gmail.com
|
||||
|
||||
.include "../../Mk/plugins.mk"
|
||||
|
|
|
|||
|
|
@ -2,3 +2,14 @@ This package adds a backup option using an existing NextCloud instance.
|
|||
|
||||
Due to the sensitive nature of the data being send to the backup, we
|
||||
strongly advise to not use a public service to send backups to.
|
||||
|
||||
Plugin Changelog
|
||||
================
|
||||
|
||||
1.1
|
||||
|
||||
* Back up the content of /conf/backup (contributed by Daniel Lysfjor)
|
||||
|
||||
1.0
|
||||
|
||||
* Initial release
|
||||
|
|
|
|||
|
|
@ -152,7 +152,9 @@ class Nextcloud extends Base implements IBackupProvider
|
|||
$tmp_local_files = scandir('/conf/backup/');
|
||||
// Remove '.' and '..'
|
||||
foreach ($tmp_local_files as $tmp_local_file) {
|
||||
if ($tmp_local_file === '.' || $tmp_local_file === '..') { continue; }
|
||||
if ($tmp_local_file === '.' || $tmp_local_file === '..') {
|
||||
continue;
|
||||
}
|
||||
$local_files[] = $tmp_local_file;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,13 +4,12 @@
|
|||
<description>OPNsense Nextcloud Backup Settings</description>
|
||||
<items>
|
||||
<enabled type="BooleanField">
|
||||
<Default>0</Default>
|
||||
<Required>Y</Required>
|
||||
<Default>0</Default>
|
||||
<Required>Y</Required>
|
||||
</enabled>
|
||||
<url type="TextField">
|
||||
<Required>N</Required>
|
||||
<Mask>/^https?:\/\/.*[^\/]$/</Mask>
|
||||
<ValidationMessage>The url must be valid without a trailing slash. For example: https://nextcloud.example.com or https://example.com/nextcloud</ValidationMessage>
|
||||
<ValidationMessage>The URL must be valid without a trailing slash.</ValidationMessage>
|
||||
<Constraints>
|
||||
<check001>
|
||||
<ValidationMessage>An URL for the Nextcloud server must be set.</ValidationMessage>
|
||||
|
|
@ -43,9 +42,7 @@
|
|||
</check001>
|
||||
</Constraints>
|
||||
</password>
|
||||
<password_encryption type="TextField">
|
||||
<Required>N</Required>
|
||||
</password_encryption>
|
||||
<password_encryption type="TextField"/>
|
||||
<backupdir type="TextField">
|
||||
<Required>Y</Required>
|
||||
<Mask>/^([\w%+\-]+\/)*[\w+%\-]+$/</Mask>
|
||||
|
|
|
|||
Loading…
Reference in a new issue