I’m trying to use the mentioned add-on. But it fails with this error during upload:
HTTPError: Response code 500 (Internal Server Error)
at Request._onResponseBase (file:///opt/nextcloud_backup/node_modules/got/dist/source/core/index.js:684:31)
at Request._onResponse (file:///opt/nextcloud_backup/node_modules/got/dist/source/core/index.js:743:24)
at ClientRequest.<anonymous> (file:///opt/nextcloud_backup/node_modules/got/dist/source/core/index.js:761:23)
at Object.onceWrapper (node:events:628:26)
at ClientRequest.emit (node:events:525:35)
at HTTPParser.parserOnIncomingClient (node:_http_client:693:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:117:17)
at TLSSocket.socketOnData (node:_http_client:534:22)
at TLSSocket.emit (node:events:513:28)
at addChunk (node:internal/streams/readable:324:12)
I use a NextCloud service from hetzner.com. The WebDAV command ist not exactly the same it is with other NextCloud installations:
https://myserver.de/remote.php/dav/files/myname
Maybe this is the origin of the error. I’m also using a NextCloud App password that I successfully tested with another third party software. Does someone have an idea what could be wrong?
Thank you! But I already read this and it’s not the problem. By the way, my backups are around 30 MB. Not a size that is limited. The storage size is 1TB and I already uploaded files of several GB with WebDAV.
I would look within the Nextcloud log what is going wrong here. There must be some log entries regarding the issue whenever HA is trying to store a backup on the Nextcloud space.
I finally found a solution that fits my needs: I installed a Cron job that is executed daily. This job starts the backup, copies it to a temporary folder, renames it to something readable like "20241126_1800.tar" and uploads the file to a NextCloud space. It has the big advantage over all the other solutions that it uploads to a shared write-only NextCloud folder, which makes it a lot more safe than another kind of shared folder. Additionally it deletes local backups that are older than n days.
If someone is interested, I’d be happy to share this solution here. Just ask me.