Class: Yobi::BackupSummary
- Defined in:
- lib/yobi/repository/backup.rb,
sig/yobi.rbs
Overview
The "summary" message from a backup run, the final result once the
command finishes. Dispatched to Yobi::Repository#backup's block, and
also what Yobi::BackupOutcome#summary returns. See
https://restic.readthedocs.io/en/stable/075_scripting.html#summary.
Instance Method Summary collapse
Methods inherited from FancyHash
#initialize, #inspect, #pretty_print
Constructor Details
This class inherits a constructor from Yobi::FancyHash
Instance Method Details
#backup_end ⇒ Time?
186 187 188 |
# File 'lib/yobi/repository/backup.rb', line 186 def backup_end @backup_end ||= Time.parse(self["backup_end"]) if self["backup_end"] end |
#backup_start ⇒ Time?
182 183 184 |
# File 'lib/yobi/repository/backup.rb', line 182 def backup_start @backup_start ||= Time.parse(self["backup_start"]) if self["backup_start"] end |