Commit Graph

13 Commits

Author SHA1 Message Date
Kaerbr
6ded00aa06
Support Nextcloud / WebDav (#48)
* add studio-b12/gowebdav to be able to upload to webdav server

* make sure all env variables are present for webdav upload

* implement file upload to WebDav server

directory defaults to the base directory

* docs: add the new feature to the documentation

* if no WebDav env variable are given throw no error

* docs: use more elegant english :D

Co-authored-by: Frederik Ring <frederik.ring@gmail.com>

* docs: use official spelling of "WebDAV"

* perf: golang likes to return early instead of having an else block

* use WEBDAV_PATH instead of WEBDAV_DIRECTORY

* use split_words for more convenience

like shown here: https://github.com/kelseyhightower/envconfig#struct-tag-support

* simplify

* feat: add pruning of files in WebDAV remote

Based on / Inspired by the minio/S3 implementation of pruning remote files.

* remove logging from the development

* test: first try implementing tests

Sandly I have to use the remote pipeline -- local wont work for me.

* test: adapt used volume names

* test: specify image only once!

* test: minio AND webdav data should be present

* test: backups on WebDAV remote are laying in the root directory

* test: the webdav server stores date in /var/lib/dav

* trying with data subfolder

* test: 1 container was added so the number raised from 3 to 4

* webdav  subfolder is "data" not "backup"

* fix: password AND username must be defined

not password OR username

* improve logging

* feat: if the given path on the server isnt preset it will be created

* test: add creation of new folder for webdav to tests

Co-authored-by: Frederik Ring <frederik.ring@gmail.com>
2022-01-22 13:29:21 +01:00
c062710ce8
Allow for env substitution in backup filename (#39) 2021-12-22 14:39:46 +01:00
c59b40f2df automatically create symlink to latest local backup if configured 2021-10-01 18:19:24 +02:00
5922820ada add test for checking behavior on symlinks 2021-09-04 10:30:34 +02:00
e0c4adc563 move handling of config to script layer 2021-08-24 09:01:44 +02:00
f4f4fa9e74 use full filepath when pruning local backups 2021-08-23 14:56:04 +02:00
f2739b583e add gpg encryption 2021-08-23 14:48:32 +02:00
78e4e3813b implement deletion of local backups 2021-08-23 14:48:10 +02:00
6fe81cdf2d add testcase for gpg encryption 2021-08-23 14:42:50 +02:00
278df9b2f7 use find instead of mc for pruning local backups 2021-08-20 10:01:46 +02:00
767c21ef65 allow local storage of backups 2021-08-19 10:35:39 +02:00
5fd6f66324 label container in cli test 2021-07-11 20:21:17 +02:00
da75d232f4 add test for using docker cli 2021-07-11 14:02:05 +02:00