autorestic: log file doesn't contain backend/location details
Example below. All the dynamic text which is displayed in the console is not visible so you don’t know what backend and backup location were processed.
Is it possible to generate more flat-file-log-friendly output via a switch/flag?
Configuring Backends
Backing Up
Files: 0 new, 0 changed, 1 unmodified
Dirs: 0 new, 0 changed, 0 unmodified
Added to the repo: 0 B
processed 1 files, 0 B in 0:04
snapshot 8a093c2a saved
Finished! ð
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 16 (15 by maintainers)
So… it’s been a long time. I’ve rewritten the whole thing in Go the past week and it’s way more stable (and smaller). @sumnerboy12 should be fixed. Feel free to repoen if that is not the case. Note the (small) upgrade guide https://autorestic.vercel.app/upgrade
No problems! Sorry to be pushy! Best of luck with your studies.
On Wed, 10 Feb 2021, 04:21 Nicco, notifications@github.com wrote:
Ok - the output is cleaned up but there is no mention of which backend/location is being processed. It just looks like the raw
resticoutput I think. Any chance we can get more detailed logging of what is actually being processed? Very hard to tell in the log below what repo has been backed up etc. NOTE: this is running with--verbose.Hey, sry I forgot that was an issue. Probably I could rewrite the whole logging thing. It’s quite ugly anyways.
Moreover, I can’t detect failed tasks with Ansible.
autoresticalways return0(success) as rc. Doesn’t matter task was succeeded or not. And I can’t catchFailed!on stdout:Ansible stdout:
While real output contains errors:
Currently not but thats a good idea to have a flag. Will look into it the next days 😃