JSON formatted output of a snapshots #554
-
|
Short Question: How can I get a clean JSON formatted output for a snapshots command? When I add Longer Version: I am a newbie to restic and resticprofile, though I used duplicity for many years. In my current system I'm happy to assume that backup tool is correctly "doing it's thing", with the more likely failure mode being that I've set it up wrong. Specifically, I run a bespoke test script (python) to check the dates on the backups, ensuring that they are being done frequently enough, with the results being fed into my system monitor (e.g. Zabbix/LibreNMS). One of the attractions of restic/resticprofile is the ability to get json formatted responses. When I execute That is, the output is top-n-tailed by logging output. By-the-way, these lines do not appear when I use Investigating the website, i found that I could add a logging directive to the config file, sending to the log to a (for now) temporary file. I was expecting that the logging lines would go to the log file and that the JSON would appear alone on the standard output. I was surprised to find that the standard output was empty and the JSON had also moved to the log file. Please can someone give me some pointers how to get JSON only output. Thanks. For Reference: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Have you tried the |
Beta Was this translation helpful? Give feedback.
Have you tried the
--quiet(or-q) flag?