Class: Yobi::BackupStatus

Inherits:
SimpleDelegator
  • Object
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

Instance Method Details

#bytes_doneInteger?

Returns:

  • (Integer, nil)


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

def bytes_done
  self["bytes_done"]
end

#current_filesArray<String>

Returns:

  • (Array<String>)


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

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

#error_countInteger

Returns:

  • (Integer)


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

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

#files_doneInteger?

Returns:

  • (Integer, nil)


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

def files_done
  self["files_done"]
end

#percent_doneFloat?

Returns:

  • (Float, nil)


192
193
194
# File 'lib/yobi/repository/backup.rb', line 192

def percent_done
  self["percent_done"]
end

#total_bytesInteger?

Returns:

  • (Integer, nil)


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

def total_bytes
  self["total_bytes"]
end

#total_filesInteger?

Returns:

  • (Integer, nil)


197
198
199
# File 'lib/yobi/repository/backup.rb', line 197

def total_files
  self["total_files"]
end