resticprofile icon indicating copy to clipboard operation
resticprofile copied to clipboard

contrib: added the common mixins library

Open jkellerer opened this issue 1 year ago • 3 comments

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:

  • [ ] integration tested
  • [ ] tested

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.

jkellerer avatar Mar 19 '24 11:03 jkellerer

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 avatar Mar 19 '24 16:03 creativeprojects

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

creativeprojects avatar Mar 19 '24 16:03 creativeprojects

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

  • what shell to use
  • async (run until the section ends, e.g. for remote locks with external tools)
  • hidden-execution (copy to script file to hide confidentials from proc list)
  • what to do on return code (abort, fail, continue).. allows to use it as conditional when set to abort instead of fail.

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

jkellerer avatar Mar 19 '24 16:03 jkellerer