Error while fetching filelist from Nextcloud '/.' path
Once I created an App password for Opnsense, it was pretty straightforward. Assuming you set the correct URL for your nextcloud and the username and the App password for opnsense and enabled the "service"Did you by any chance use a leading slash in your path for Directory Name? You shouldn't as the comment there suggests.
"ssl_verify_result":18
Have you tried creating the folder that you want the backups in -- manually in Nextcloud and then trying?
https://forum.opnsense.org/index.php?topic=8996.0 this post had a similar issue and it was cert related, that's why I think it just doesn't like a self signed cert. It's waaay to much effort to get let's encrypt up and going imo. Very frustrating something as necessary as backup is so hard to reach it seems. I'd say I'm a pretty seasoned sysadmin and this is stumping me. No way less seasoned users are gonna get this working. IMO there needs to be a much simpler option available.
HiI didn't know about the nextcloud backup option.... Tried Google a while back but it's confusing and inconvenient!Really there should be a simple smb/ftp/nfs share option for backing up to NAS etc.Anyway, after reading this thread I tried nextcloud. Dididn't use it before as I have 2 QNAP's and nextcloud doesn't bring anything useful. BUT:I installed dietpi in a proxmox VM (ALL my linux vm's run dietpi, used it on raspberry before migrating all devices to VM's in proxmox). Installed nextcloud from dietpi-software options. Did basic config creating "opnsense" user and an app password as described above.I created the backup folder in nexcloud under the created user.Installed the nextcloud plugin in opnsense and configured the new backup option with the internal IP from the nexcloud interface: http://192.168.2.44/nextclouduser: the user I createdpw: the app password.Did a save/test and all is working.Couldn't be simpler.No certs nothing as this is all local.
If you want to get it running just install a Dietpi VM and try again, might be lucky also.... It's done in 5min under proxmox
Great.Guess if this is all local (in my case) and only to accept opnsense backups (don't need it for anything else) it can be http only.
Yea that's mostly true, I just never like plain text passwords, if something is ever compromised on network that's just one more thing that could be read and subsequently accessed. Small risk, but I worked a long time in enterprise cyber so lateral movement is something I always think about.
I'll probably leave it this way for now, looks like DNS based Let's encrypt isnt easy to setup on Nextcloud currently.
Secondly how often does a backup run? Do I need to setup a cron job? I see there is a "remote backup" option but I have no idea what it does.