* Simplify logging, fix WebDAV spelling
* Define options types per package
* Move util functions that are not used cross package
* Add per file license headers
* Rename config type
* Added abstract helper interface and implemented it for all storage backends
* Moved storage client initializations also to helper classes
* Fixed ssh init issue
* Moved script parameter to helper struct to simplify script init.
* Created sub modules. Enhanced abstract implementation.
* Fixed config issue
* Fixed declaration issues. Added config to interface.
* Added StorageProviders to unify all backends.
* Cleanup, optimizations, comments.
* Applied discussed changes. See description.
Moved modules to internal packages.
Replaced StoragePool with slice.
Moved conditional for init of storage backends back to script.
* Fix docker build issue
* Fixed accidentally removed local copy condition.
* Delete .gitignore
* Renaming/changes according to review
Renamed Init functions and interface.
Replaced config object with specific config values.
Init func returns interface instead of struct.
Removed custom import names where possible.
* Fixed auto-complete error.
* Combined copy instructions into one layer.
* Added logging func for storages.
* Introduced logging func for errors too.
* Missed an error message
* Moved config back to main. Optimized prune stats handling.
* Move stats back to main package
* Code doc stuff
* Apply changes from #136
* Replace name field with function.
* Changed receiver names from stg to b.
* Renamed LogFuncDef to Log
* Removed redundant package name.
* Renamed storagePool to storages.
* Simplified creation of new storage backend.
* Added initialization for storage stats map.
* Invert .dockerignore patterns.
* Fix package typo
* Refactor label command mechanism to be more flexible
* Run all steps wrapped in labeled commands
* Rename methods to be in line with lifecycle
* Deprecate exec-pre and exec-post labels
* Add documentation
* Use type alias for lifecycle phases
* Fix bad imports
* Fix command lookup for deprecated labels
* Use more generic naming for lifecycle phase
* Fail on erroneous post command
* Update documentation
* Hoist walking of files so it can be used for features other than archive creation
* Add option to ignore files from backup using glob patterns
* Use Regexp instead of glob for exclusion
* Ignore artifacts
* Add teardown to test
* Allow single Re for filtering only
* Add documentation
* Use MatchString on re, add bad input to message in case of error
* Retry on lock being unavailable
* Refactor locking to return plain error
* Collect LockedTime in stats
* Add test case
* Add documentation for LOCK_TIMEOUT
* Log in case lock needs to be awaited
* Release resources created for awaiting lock
* Add option to run pre commands on arbitrary container
* Correctly handle quoted args in commands
* Provide defaults for test version arg
* Allow filtering of target containers
* Add documentation on exec commands
* Use mysqldump in exec test
* Add mysqldump section to recipes
* Also run commands test in swarm mode
* Use name instead of id
* Add syntax highlighting
* Add missing license headers
* Update targz library to include potential ownership fix
* Move archive logic to main repo
* Remove assertions for debugging
* Use relative path in assertion
* Strip local part from archive location
* Log when extracting in tests
* Fix trimming of prfix
* Add license info to archive.go file
* Undo change in test assertion
* Add test checking for preserved file ownership
* use same postgres version in tests
* Wrap errors when archiving, handle deletion at script layer
* Split code into multiple files
* Deduplicate logic for pruning backups against different storages
* Only parse templates when notifications are enabled
* Use better description
* 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>
* 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>