Class: Yobi::BackupStatus
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Yobi::BackupStatus
- Defined in:
- lib/yobi/repository/backup.rb,
sig/yobi.rbs
Overview
One "status" message from a live backup run.
https://restic.readthedocs.io/en/stable/075_scripting.html#status
Instance Method Summary collapse
- #bytes_done ⇒ Integer?
- #current_files ⇒ Array<String>
- #error_count ⇒ Integer
- #files_done ⇒ Integer?
- #percent_done ⇒ Float?
- #total_bytes ⇒ Integer?
- #total_files ⇒ Integer?
Instance Method Details
#bytes_done ⇒ Integer?
212 213 214 |
# File 'lib/yobi/repository/backup.rb', line 212 def bytes_done self["bytes_done"] end |
#current_files ⇒ Array<String>
217 218 219 |
# File 'lib/yobi/repository/backup.rb', line 217 def current_files self["current_files"] || [] end |
#error_count ⇒ Integer
222 223 224 |
# File 'lib/yobi/repository/backup.rb', line 222 def error_count self["error_count"] || 0 end |
#files_done ⇒ Integer?
202 203 204 |
# File 'lib/yobi/repository/backup.rb', line 202 def files_done self["files_done"] end |
#percent_done ⇒ Float?
192 193 194 |
# File 'lib/yobi/repository/backup.rb', line 192 def percent_done self["percent_done"] end |
#total_bytes ⇒ Integer?
207 208 209 |
# File 'lib/yobi/repository/backup.rb', line 207 def total_bytes self["total_bytes"] end |
#total_files ⇒ Integer?
197 198 199 |
# File 'lib/yobi/repository/backup.rb', line 197 def total_files self["total_files"] end |