Feature: Take command output as stdin for restic#98
Feature: Take command output as stdin for restic#98creativeprojects merged 2 commits intocreativeprojects:masterfrom
Conversation
70041d8 to
ec7f574
Compare
Codecov Report
@@ Coverage Diff @@
## master #98 +/- ##
==========================================
+ Coverage 65.18% 65.73% +0.54%
==========================================
Files 65 66 +1
Lines 6495 6636 +141
==========================================
+ Hits 4234 4362 +128
- Misses 2062 2070 +8
- Partials 199 204 +5
Continue to review full report at Codecov.
|
dd254e2 to
29b9e2a
Compare
858203b to
6cb5de7
Compare
6cb5de7 to
9f89da9
Compare
|
I like it. I was using a temp file, but that will make my config simpler 😄 [azure.backup]
limit-upload = 500
exclude = [ "azure-backup.log" ]
exclude-file = [ "root-excludes", "excludes" ]
exclude-caches = true
tag = [ "mysql", "git" ]
run-before = [
"rm -f /tmp/mysqldump.gz",
"mysqldump -u{{ mysql_backup_user }} -p{{ mysql_backup_password }} --opt zabbix | gzip > /tmp/mysqldump.gz"
]
source = [ "/tmp/mysqldump.gz", "/git/creativeprojects" ]
run-after = [
"rm -f /tmp/mysqldump.gz"
]
schedule = "04:18"
schedule-permission = "system"
schedule-log = "azure-backup.log"
|
creativeprojects
left a comment
There was a problem hiding this comment.
it is a bit annoying, but I think we have to synchronise the stdin goroutine with the command runner during a --dry-run
9f89da9 to
abe8f46
Compare
abe8f46 to
2f05621
Compare
creativeprojects
left a comment
There was a problem hiding this comment.
That'd be nice to find a better way to stop on Windows but I'm not even sure we can do it.
Apart from that, it's all good for me, nice job 😊
|
Kudos, SonarCloud Quality Gate passed!
|








PR introducing "stdin-command" to allow scheduling backups of streams (e.g. mysql-dump) without requiring temporary storage.
Usage:
(depends on
ResolveConfiguration())