Commit Graph

48 Commits

Author SHA1 Message Date
1db896f7cf Tweak README, improve client naming, tidy go.mod file 2022-01-22 13:35:13 +01:00
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
6b79f1914b
Update README.md 2022-01-06 16:09:33 +01:00
40ff2e00c9
Update README.md 2022-01-06 16:07:00 +01:00
32575c831e Also expand env vars in pruning prefix if configured 2021-12-23 09:22:56 +01:00
c062710ce8
Allow for env substitution in backup filename (#39) 2021-12-22 14:39:46 +01:00
3a7dfe8e60 Add note about double quoting issue in older compose versions 2021-12-18 13:24:14 +01:00
9ec33510e7 Extend docs on notifications 2021-12-18 10:31:12 +01:00
88c90a206c Use int comparison for checking hooks 2021-12-18 10:31:12 +01:00
8bad0656b3 Enable notifications on multiple levels 2021-12-18 10:31:12 +01:00
08d78a0bd6 allow sending notifications to multiple channels 2021-12-18 10:31:12 +01:00
3c06bf8102 run cli test using BACKUP_FROM_SNAPSHOT 2021-11-08 08:44:59 +01:00
schwannden
411c39ee72
create a snapshot before creating tar archive (#32)
* create a snapshot before creating tar archive

* safeguard snapshot removal and make snapshot optional

* fix typo, make sure remove snapshot failure triggers failure hook

Co-authored-by: Schwannden Kuo <schwannden@mobagel.com>
2021-11-08 08:39:18 +01:00
5245b5882f update README, save some indentation 2021-10-28 19:55:39 +02:00
ad7ec58322 add syntax highlighting 2021-10-23 17:45:57 +02:00
b7ab2fbacc add section about container timezones to the README 2021-10-23 17:44:30 +02:00
c59b40f2df automatically create symlink to latest local backup if configured 2021-10-01 18:19:24 +02:00
cff418e735 fix README grammar 2021-10-01 08:48:20 +02:00
bd73a2b5e4 allow s3 authentication via IAM role 2021-09-30 19:24:43 +02:00
184b7a1e18 add docs on one off backups using docker cli 2021-09-11 11:21:48 +02:00
69a94f226b tweak configuration reference for email settings 2021-09-10 11:58:33 +02:00
af3e69b7a8 fix typo in README 2021-09-09 09:19:37 +02:00
88368197c1 implement email notifications on failed backup runs 2021-09-09 09:00:23 +02:00
bea203af3d improve documentation 2021-08-29 18:16:04 +02:00
5334ff1a5a refactor script initialization 2021-08-25 07:48:20 +02:00
7086c6e645 read backup in small chunks when encrypting 2021-08-23 14:48:33 +02:00
4c80494433 use go native strftime version 2021-08-23 14:48:33 +02:00
7244725c5b fix location of success message for having created local backup 2021-08-23 14:48:33 +02:00
188c14c00f add insecure option, update docs 2021-08-23 14:48:33 +02:00
0069faa7fd allow passing prefix to limit pruning ops 2021-08-19 13:41:19 +02:00
767c21ef65 allow local storage of backups 2021-08-19 10:35:39 +02:00
4b59089e3d add note about how the endpoint does not include a protocol 2021-08-19 08:57:48 +02:00
8e90ce408a add note about potentially having to raise memory limit when backing up large files 2021-08-18 20:38:51 +02:00
510ae889e4 document AWS_ENDPOINT_PROTO option 2021-08-17 19:49:51 +02:00
e4bb183afa add note about applying memory limit when running in swarm mode 2021-08-05 21:56:19 +02:00
a3d7af2b42 add docs on manually triggering backup 2021-07-11 10:36:29 +02:00
054ab8fbe6 when stopped container was part of a stack service, update service instead 2021-07-08 19:54:04 +02:00
07befda44d build mc from source, support arm/v7 2021-07-01 15:16:39 +02:00
23c287bfc7 build image for arm architectures 2021-07-01 14:19:55 +02:00
bafca7bb85 allow for making container stop filter configurable 2021-06-26 21:16:22 +02:00
1af345061c use global options naming to be in line with minio docs 2021-05-25 07:35:21 +02:00
5368eb8c5e allow passing custom arguments to minio client 2021-05-24 20:34:30 +02:00
5978a897ad document leeway option when pruning 2021-04-08 17:24:44 +02:00
204a0862c6 make log output more consistent 2021-04-03 09:33:11 +02:00
17a3523ded tweak comparison in README 2021-04-02 14:44:28 +02:00
782b39b09d add README content 2021-04-02 14:17:09 +02:00
a726bdecd4 add initial source 2021-04-02 13:59:53 +02:00
a2fd22f300
Initial commit 2021-04-02 13:45:33 +02:00