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)


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

def bytes_done
  self["bytes_done"]
end

#current_filesArray<String>

Returns:

  • (Array<String>)


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

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

#error_countInteger

Returns:

  • (Integer)


237
238
239
# File 'lib/yobi/repository/backup.rb', line 237

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

#files_doneInteger?

Returns:

  • (Integer, nil)


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

def files_done
  self["files_done"]
end

#percent_doneFloat?

Returns:

  • (Float, nil)


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

def percent_done
  self["percent_done"]
end

#total_bytesInteger?

Returns:

  • (Integer, nil)


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

def total_bytes
  self["total_bytes"]
end

#total_filesInteger?

Returns:

  • (Integer, nil)


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

def total_files
  self["total_files"]
end