Files
xen-orchestra/@xen-orchestra/backups/docs/Metadata backups
2022-03-25 11:21:17 +01:00
..

File structure on remote

<remote>
├─ xo-config-backups
│  └─ <schedule ID>
│     └─ <YYYYMMDD>T<HHmmss>
│        ├─ metadata.json
│        └─ data.json
└─ xo-pool-metadata-backups
   └─ <schedule ID>
      └─ <pool UUID>
         └─ <YYYYMMDD>T<HHmmss>
            ├─ metadata.json
            └─ data

Structure of metadata.json

interface Metadata {
  jobId: String
  jobName: String
  scheduleId: String
  scheduleName: String
  timestamp: number
  pool?: Pool
  poolMaster?: Host
}

Task logs

During backup

job.start(data: { reportWhen: ReportWhen })
├─ task.start(data: { type: 'pool', id: string, pool?: Pool, poolMaster?: Host })
│  ├─ task.start(data: { type: 'remote', id: string })
│  │  └─ task.end
│  └─ task.end
├─ task.start(data: { type: 'xo' })
│  ├─ task.start(data: { type: 'remote', id: string })
│  │  └─ task.end
│  └─ task.end
└─ job.end