How to run a script before and after backup? #8226
Unanswered
Zalfsten
asked this question in
Community support Q&A
Replies: 1 comment 1 reply
-
Seems to be related to #3978 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am trying to make a backup of my nextcloud instance with velero.
The official backup procedure for nextcloud is:
So I would like to run scripts before and after the velero backup process.
As I understand it, this does not work with pre/post backup hooks, because they do not run before and after the actual backup process, but before and after each individual pod backup. So I could implement a procedure like this:
Even this is not trivial as the database pod would need to talk to the nextcloud pod to enter maintenance mode.
Nevertheless this could lead to inconsistent backups, of course.
Is there a solution to map the official nextcloud backup process with velero?
Thanks and Regards,
Carsten
Beta Was this translation helpful? Give feedback.
All reactions