creativeprojects / resticprofile

Configuration profiles manager and scheduler for restic backup
https://creativeprojects.github.io/resticprofile/
GNU General Public License v3.0
604 stars 29 forks source link

contrib: added the common mixins library #346

Open jkellerer opened 4 months ago

jkellerer commented 4 months ago

This PR is a contribution of a common mixins library that may be used to simplify common actions when performing backups. It starts with support for snapshots and databases in posix environments.

Status:

Status for the moment, it is just a brain dump of something I wanted to add for some time but it is highly untested, though I use most of the actions in my backups in simplified forms.

creativeprojects commented 4 months ago

This is an excellent idea 💡

I always wanted to add a section (in the documentation) on how to use rclone with restic with a few configuration examples, but never took the time to do it 😞

creativeprojects commented 4 months ago

BTW if we want the various snippets to also work with Windows, we can do like go-task and use a shell interpreter

This is out of the scope of this MR though

jkellerer commented 4 months ago

Was actually thinking to extend the shell hook format with an optional struct to toggle things like:

...also out of scope for this PR. But helpful here and an integration point for a shell interpreter.