15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# File 'lib/kamal_backup/evidence.rb', line 15
def to_h
Schema.record(
kind: "evidence",
app_name: @config.app_name,
generated_at: Time.now.utc.iso8601,
database_adapter: @config.database_adapter,
databases: @config.databases.map { |database| { name: database.database_name, adapter: database.database_adapter } },
restic_repository: @redactor.redact_string(@config.restic_repository.to_s),
backup_paths: @config.backup_paths,
paths: @config.backup_paths,
forget_after_backup: @config.forget_after_backup?,
retention: @config.retention,
latest_database_backup: latest_snapshot_summary(["type:database"]),
latest_database_backups: latest_database_backups,
latest_file_backup: latest_snapshot_summary(["type:files"]),
last_restic_check: last_check,
last_restore_drill: last_restore_drill,
image_version: VERSION,
tool_versions: tool_versions
)
end
|