Class: Yobi::BackupStatus

Inherits:
FancyHash show all
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

Methods inherited from FancyHash

#initialize, #inspect, #pretty_print

Constructor Details

This class inherits a constructor from Yobi::FancyHash

Instance Method Details

#bytes_doneInteger?

Returns:

  • (Integer, nil)


223
224
225
# File 'lib/yobi/repository/backup.rb', line 223

def bytes_done
  self["bytes_done"]
end

#current_filesArray<String>

Returns:

  • (Array<String>)


228
229
230
# File 'lib/yobi/repository/backup.rb', line 228

def current_files
  self["current_files"] || []
end

#error_countInteger

Returns:

  • (Integer)


233
234
235
# File 'lib/yobi/repository/backup.rb', line 233

def error_count
  self["error_count"] || 0
end

#files_doneInteger?

Returns:

  • (Integer, nil)


213
214
215
# File 'lib/yobi/repository/backup.rb', line 213

def files_done
  self["files_done"]
end

#percent_doneFloat?

Returns:

  • (Float, nil)


203
204
205
# File 'lib/yobi/repository/backup.rb', line 203

def percent_done
  self["percent_done"]
end

#total_bytesInteger?

Returns:

  • (Integer, nil)


218
219
220
# File 'lib/yobi/repository/backup.rb', line 218

def total_bytes
  self["total_bytes"]
end

#total_filesInteger?

Returns:

  • (Integer, nil)


208
209
210
# File 'lib/yobi/repository/backup.rb', line 208

def total_files
  self["total_files"]
end