Class: Yobi::RestoreStatus

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/yobi/repository/restore.rb,
sig/yobi.rbs

Overview

One "status" message from a live restore run. https://restic.readthedocs.io/en/stable/075_scripting.html#restore

Instance Method Summary collapse

Instance Method Details

#bytes_restoredInteger?

Returns:

  • (Integer, nil)


136
137
138
# File 'lib/yobi/repository/restore.rb', line 136

def bytes_restored
  self["bytes_restored"]
end

#files_restoredInteger?

Returns:

  • (Integer, nil)


126
127
128
# File 'lib/yobi/repository/restore.rb', line 126

def files_restored
  self["files_restored"]
end

#percent_doneFloat?

Returns:

  • (Float, nil)


116
117
118
# File 'lib/yobi/repository/restore.rb', line 116

def percent_done
  self["percent_done"]
end

#total_bytesInteger?

Returns:

  • (Integer, nil)


131
132
133
# File 'lib/yobi/repository/restore.rb', line 131

def total_bytes
  self["total_bytes"]
end

#total_filesInteger?

Returns:

  • (Integer, nil)


121
122
123
# File 'lib/yobi/repository/restore.rb', line 121

def total_files
  self["total_files"]
end