Loop with stdin #414
Replies: 1 comment 9 replies
-
Quick answer:
Long answerRight now the configuration doesn't have any concept of loops and probably won't in the near future. Now, on my databases, I found out that using mysql:
backup:
tag:
- mysql
run-before:
- rm -f /tmp/mysqldumpall.sql
- mysqldump --all-databases > /tmp/mysqldumpall.sql
source:
- /tmp/mysqldumpall.sql
run-after:
- rm -f /tmp/mysqldumpall.sql
schedule: 'daily'
Sorry if it's not the answer you were looking for 😉 |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm currently in the process of converting bash scripts to resticprofile. In my scripted version I'm currently looping through all existing MySQL databases and back them up via Restic with stdin. I know resticprofile has support for stdin, but can it also be used with a loop?
Beta Was this translation helpful? Give feedback.
All reactions